-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
519 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
node_modules | ||
games/ | ||
client/dist | ||
server/build | ||
server/tmp | ||
server/lakefile.olean | ||
**/lake-packages/ | ||
games/ | ||
server/.lake | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Publishing games | ||
|
||
You can publish your game on the official (Lean Game Server)[https://adam.math.hhu.de] in a few simple | ||
steps. | ||
|
||
## 1. Upload Game to github | ||
|
||
First, you need your game in a public Github repository and make sure the github action has run. | ||
You can check this by spotting the green checkmark on the start page, or by looking at the "Actions" | ||
tab. | ||
|
||
## 2. Import the game | ||
|
||
You call the URL that's listed under "What's Next?" in the latest action run. Explicitely you call | ||
the URL of the form | ||
|
||
> adam.math.hhu.de/import/trigger/{USER}/{REPOSITORY} | ||
where `{USER}` and `{REPOSITORY}` are replaced with the github user and repository name. | ||
|
||
You should see a white screen which shows import updates and eventually reports "Done." | ||
|
||
## 3. Play the game | ||
|
||
Now you can immediately play the game at `adam.math.hhu.de/#/g/{USER}/{REPOSITORY}`! | ||
|
||
## 4. Main page | ||
|
||
Adding games to the main page happens manually by the server maintainers. Tell us if you want us | ||
to add a tile for your game! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
# Notes for Server maintainer | ||
|
||
In order to set up the server to allow imports, one needs to create a | ||
[Github Access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens). A fine-grained access token with only reading rights for public | ||
repos will suffice. | ||
|
||
You need to set the environment variables `LEAN4GAME_GITHUB_USER` and `LEAN4GAME_GITHUB_TOKEN` | ||
with your user name and access token. For example, you can seet these in `ecosystem.config.cjs` if | ||
you're using `pm2` | ||
|
||
Then people can call: | ||
|
||
> https://{website}/import/trigger/{owner}/{repo} | ||
where you replace: | ||
- website: The website your server runs on, e.g. `localhost:3000` | ||
- owner, repo: The owner and repository name of the game you want to load from github. | ||
|
||
will trigger to download the latest version of your game from github onto your server. | ||
Once this import reports "Done", you should be able to play your game under: | ||
|
||
> https://{website}/#/g/{owner}/{repo} | ||
## data management | ||
Everything downloaded remains in the folder `lean4game/games`. | ||
the subfolder `tmp` contains downloaded artifacts and can be deleted without loss. | ||
The other folders should only contain the built lean-games, sorted by owner and repo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
build | ||
adam | ||
nng | ||
build/ | ||
games/ | ||
.lake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.