Bookstore e-commerce API Rest built with NestJS
and PostreSQL
. This is a side project developed with the intention of learning and practicing new technologies I have not used before.
You can take a look at the frontend in the bookstore-angular repository, and the API Documentation built with Swagger.
Note
Please note that this project has been developed for educational purposes only and does not support real transactions.
- Framework: NestJS
- ORM: Prisma
- Database: PostreSQL
- Unit testing: Jest
- Payments: Stripe
- Emails: Brevo
- API Documentation: Swagger
- Production deployment: Railway
$ pnpm install
- Clonate the file
.env.template
and rename the copy to.env
- Set the environment variables defined
.env
- Start the
PostgreSQL
database
# You can use the docker-compose to run the db
docker-compose up -d
- Synchronize the
Prisma
schema with thePostgreSQL
schema
npx prisma db push
- Seed the database with mock data
npx prisma db seed
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e
# test coverage
$ pnpm run test:cov