Make sure you're using node version 18 or newer. To install the appropriate version follow the instructions on nodejs.org.
To install dependencies run:
yarn install
Remember to add the serviceAccount.json
file from Firebase under src/
as
well as a secrets.ts
file that contains login credentials for the database.
It should be similar to this:
export const user = 'pokerio-user'
export const password = 'pokerio-password'
export const database = 'pokerio-database'
Run yarn start
.
The app will attempt to connect to a Postgres database using the details
provided in databaseConnection.ts
.
We use Jest for testing. To run it, simply type yarn test
.