Skip to content

Bookstore is an e-commerce developed from scratch that allows you to perform all the basic functionalities of an online store.

Notifications You must be signed in to change notification settings

jordigd20/bookstore

Repository files navigation

Bookstore API

Bookstore Logo

Description

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.

Tech Stack

System architecture

Bookstore system architecture

Installation

$ pnpm install

Developing environment

  1. Clonate the file .env.template and rename the copy to .env
  2. Set the environment variables defined .env
  3. Start the PostgreSQL database
# You can use the docker-compose to run the db
docker-compose up -d
  1. Synchronize the Prisma schema with the PostgreSQL schema
npx prisma db push
  1. Seed the database with mock data
npx prisma db seed

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

About

Bookstore is an e-commerce developed from scratch that allows you to perform all the basic functionalities of an online store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages