vtdiep / pk-ordering

0 stars 0 forks source link

PKO

Description

Online Ordering application using Nest framework, with React & Postgres.

Pre-Requisites

npm install
# repeat inside client folder

Running the app

# development
npm run start

# watch mode
npm run start:dev

# production mode
npm run start:prod

Test

# unit tests
npm run test

# e2e tests
npm run test:e2e

# test coverage
npm run test:cov

Important Notes / Known Issues

When schema on database changes

npx prisma db pull (--force)
npx prisma generate

# run from top level
-npx knex seed:run --knexfile ./src/knexfile

Development Setup

# set up husky
npm run prepare

# OSX - permissions might beed to be set for husky
# https://github.com/typicode/husky/issues/1177
chmod ug+x .husky/*