- Run
npm install -g db-migrate
to install database migration. - Run
npm install
to install packages. - Run
export $(cat .env.dev | xargs) && docker-compose up --detach
to start the database. - Run
npm run dev
to migrate the database schema and start the auto-reloading server, the server should be listening on port3000
and the database should be listening on port5434
, for the database credentials, see.env.dev
- Run
export $(cat .env.test | xargs) && docker-compose up --detach
to start the database. - Run
npm test
, run the test.
The following npm command will be executed before git commit. This is controlled by npm package pre-commit
.
- Run
npm prettier
to format the code. For configuration, see.prettierrc.json. - Run
npm eslint
to lint the code. For configuration, see.eslintrc.json.