gamejolt/gamejolt
关于
This is the whole frontend for Game Jolt. It powers the site and the client.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Game Jolt
This is the whole frontend for Game Jolt. It powers the site and the desktop app.
We wanted to make it open source so everyone can get visibility into what we are working on. Browse the code to see how Game Jolt is put together. Feel free to offer suggestions on how to do things better, as well as contributing your own code. I'll get a better guide on how to contribute soon.
Requirements
- Install NodeJS v16+
- Install Yarn v1
- Run in terminal:
git submodule initgit submodule updateyarn
- Install git pre commit hooks:
- Windows (from administrator powershell):
.\git-hooks\install.ps1 - Mac / Linux:
./git-hooks/install.sh
- Windows (from administrator powershell):
- Add
127.0.0.1 development.gamejolt.comto your/etc/hosts(orC:\\Windows\\System32\\drivers\\etc\\hostson Windows) - Setup local development certificates.
Windows:
- Run
scripts\certs\generate-cert.ps1. - Open
gamejoltCA.crtfile it generated. - Press "Install certificate" button.
- For "Store Location" leave it as "Current User" and hit "Next".
- Choose "Place all certificates in the following store" and hit "Browse"
- Choose "Trusted Root Certification Authorities" and hit "Ok"
- Restart your browser for changes to take effect.
- Run
Linux:
- Run
./scripts/certs/generate-cert.sh - Add the cert to the local trust
On Ubuntu/Debian:
sudo cp gamejoltCA.crt /usr/local/share/ca-certificates/gamejoltCA.crt sudo update-ca-certificatesOn RHEL/Centos/Fedora:
sudo cp gamejoltCA.crt /etc/pki/ca-trust/source/anchors/gamejoltCA.crt sudo update-ca-trust extractOn Arch:
sudo cp gamejoltCA.crt /etc/ca-certificates/trust-source/anchors/gamejoltCA.crt sudo trust extract-compat trust list | grep -i "Game Jolt Dev CA"
- Run
Mac: TODO
Running
Website
Run
yarn devin the project directory.It'll set up a tiny server that hosts the website for you on your computer at https://development.gamejolt.com. Open that URL up in a web browser and you should have Game Jolt running!
- Mac users will also have to forward traffic from port 8443 to 443 to get around a security restriction (see note below)
Desktop app
Run
yarn client:devin the project directory.In another terminal run
yarn client.- Mac users will also have to forward traffic from port 8443 to 443 to get around a security restriction (see note below)
Note: First time running these will take longer than usual.
For more commands see COMMANDS.md.
Translations
Translations are done by the community. If you want to participate, feel free to join at https://poeditor.com/join/project/B4nWT6EgnD.
Notes for Mac Users
Listening on port 443 (the default port for https) requires root privileges, but we want to keep root usage to a minimum.
For this reason, the webserver listens on port 8443 instead, and then in a separate rooted process we can forward traffic from port 443 to port 8443.
There are plenty of ways to do that, personally I like using socat:
- Install using
brew install socat - Run the following while developing:
sudo socat tcp4-listen:443,bind=127.0.0.1,reuseaddr,fork tcp:127.0.0.1:8443
探索相关项目
加载中…