This project is an ecommerce application built using Nest.js and Postgres. The focus is on writing clean, modular, and testable code, and following a well-organized project structure.
- Nest.js
- PostgreSQL
- TypeORM
- Jest
To get started with this project, follow these steps:
- Clone this repository to your local machine.
- navigate to the nestjs-ecommerce directory.
cd ./nestjs-ecommerce
- start postgres database.
docker-compose up -d
- install app dependencies.
npm install
- run database migrations.
npm run migration:run
if you want to generate any future migration
npm run migration:generate --name=<migrationName>
- run database seeders.
npm run seed:run
- start the applictaion.
npm run start:dev
To run the tests, follow these steps:
- Install dependencies:
npm install
- Run the tests:
npm run test
If you're interested in contributing to this project, please follow these guidelines:
- Fork the repository
- Make your changes
- Submit a pull request