This is a sample full stack Node application to view invoices of an ecommerce company. The frontend is React + TypeScript + Vite, and the backend is an API server with NestJS + PosgreSQL.
$ cd client/
# install dependencies
$ yarn install
# start the app
$ yarn devThe app should be running at http://localhost:5173. Please make sure you have the backend running and seed the data first. Then use this credential to log in:
email: test@email.com
password: 1234
$ cd server/
$ yarn install$ docker-compose up# migrate the prisma schema to db
$ yarn prisma migrate dev
# seed db with some test data
$ yarn prisma db seed# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:covMake sure the server is running at http://localhost:3000
You can view all the endpoints and Swagger documentation at http://localhost:3000/api