Skip to content

hughluo/storefront

 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.4%
  • JavaScript 18.6%