Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.57 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.57 KB

pokerio-server

Build Lint Prettier Tests codecov

Requirements

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'

Running

Run yarn start.

The app will attempt to connect to a Postgres database using the details provided in databaseConnection.ts.

Testing

We use Jest for testing. To run it, simply type yarn test.