hughluo / storefront

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storefront Backend Project

Local Development

  • 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 port 3000 and the database should be listening on port 5434, for the database credentials, see .env.dev

Test

  • Run export $(cat .env.test | xargs) && docker-compose up --detach to start the database.
  • Run npm test, run the test.

Pre-commit

The following npm command will be executed before git commit. This is controlled by npm package pre-commit.

About

License:Other


Languages

Language:TypeScript 81.4%Language:JavaScript 18.6%