Skip to content

Commit

Permalink
publish server
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Sep 29, 2024
1 parent 217cd69 commit c4b87eb
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,51 @@ diff --git a/apps/api/app/resources.ts b/apps/api/app/resources.ts
console.log('received message from controller', event.data.type, JSON.parse(JSON.stringify(event.data)));
switch (event.data.type) {
```
GameInfo.json (for now)

```json
{
"_id": {
"game": "clash",
"version": 1
},
"description": "Clash of Cultures",
"engine": {
"package": {
"name": "@boardgamers/clash-server",
"version": "*"
},
"entryPoint": "server.js"
},
"expansions": [],
"label": "Clash of Cultures",
"meta": {
"public": true,
"needOwnership": true
},
"options": [],
"players": [
2,
3,
4
],
"preferences": [],
"rules": "",
"viewer": {
"url": "http://localhost:4000/client.js",
"topLevelVariable": "clash",
"dependencies": {
"scripts": [],
"stylesheets": []
},
"replayable": true,
"alternate": null,
"settings": []
}
}
```


## Docs

Expand Down

0 comments on commit c4b87eb

Please sign in to comment.