This project is an e-commerce application built with Node.js, Express.js, Prisma for the backend, and Angular for the frontend. It aims to provide a robust platform for managing products, orders, and user interactions in an e-commerce environment.
The project is divided into two main folders:
-
Backend:
- This folder contains all the server-side code built with Node.js and Express.js.
- It utilizes Prisma as the ORM (Object-Relational Mapping) tool for communicating with the database.
- Backend functionalities include handling authentication, managing products, processing orders, and interacting with the database.
-
Frontend:
- The frontend folder consists of the Angular application responsible for the user interface.
- It communicates with the backend API to fetch and display data, manage user authentication, and handle user interactions such as product browsing, adding items to the cart, and placing orders.
Follow the steps below to set up and run the project locally:
- Navigate to the
backend
folder. - Install dependencies by running:
npm install
- Run the server by using command:
npm run start
- Navigate to the
frontend
folder.- Go to
eCommerce
directory. - Install dependencies by running:
npm install
- Go to
- Run the application by using command:
npm run start
Update example with your actual username, password, port, secret key
DATABASE_URL="mysql://username:password@localhost:port/library"
SECRET_KEY ="your-secret-key"