This is a server for playing a multiplayer Drawbsurd game.
It has these endpoints:
POST /users
: sign up as new userPOST /logins
: log in and receive a JWTPOST /games
: create a new gamePOST /games/:id/players
: join an existing gamePATCH /games/:id
: update an existing gameGET /games
: list all gamesGET /users
: list all users
- You need a working Postgres database that is preferrably empty (drop all the tables) and running
- Install the dependencies using
yarn install
- Compile the app (Typescript > Javascript) using
yarn compile
(during development you can useyarn watch
) yarn start
You can run the tests with yarn test
. Currently they only cover the game logic.