-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Jesper edited this page May 9, 2023
·
7 revisions
You will need some basic understanding on docker and docker-compose.
Main application logic and database related dependencies you should look into before jumping into the project:
- socket.io for WebSocket communication
- express for REST API
- knex for DB selections and mutations
- pg for Postgres DB
You can find:
- DB related requests and mutations inside the
src/models
folder.
For example, define the starting budget in
src/models/game.js
like we did with this pull request
- Socket communication handling in
src/socketio.js
. - REST API endpoint handling in
src/app.js
. - DB migrations and seeds inside the
data
folder.
Migrating new content into the game should be done using the Airtable template via the migration page. There is a built-in debugger to ensure new game content fits the database schema.