This project is an Ecommerce Supermarket application built with NestJS, TypeScript, and Prisma over PostgreSQL. It serves as an online platform for customers to browse and purchase products from a supermarket.
- User Authentication: Users can register, login, and manage their accounts.
- Product Management: Admins can add, edit, and delete products.
- Shopping Cart: Users can add products to their shopping cart and proceed to checkout.
- Product Reviews: Users can leave reviews and ratings for products.
- Role-based Access Control: Admins have access to additional functionalities such as product management.
- NestJS: A progressive Node.js framework for building efficient, reliable, and scalable server-side applications.
- TypeScript: A typed superset of JavaScript that compiles to plain JavaScript.
- Prisma: A modern database toolkit for Node.js and TypeScript, providing an ORM and query builder.
- PostgreSQL: A powerful, open-source relational database system.
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git cd your-repository
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file based on the.env.example
file. - Update the environment variables with your configuration.
- Create a
-
Run migrations:
npx prisma migrate dev
-
Start the server:
npm run start:dev
-
Access the application: Visit
http://localhost:3000
in your browser to access the application.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/my-feature
). - Make your changes.
- Commit your changes (
git commit -am 'Add my feature'
). - Push to the branch (
git push origin feature/my-feature
). - Create a new Pull Request.
For inquiries or feedback, please contact Mohamed Yasser (mail:mohamed3laily@gmail.com)