A robust and scalable backend for an e-commerce platform, built to handle product management, user authentication, orders, and payments. This project is designed to be easily integrated with any frontend application.
- User Authentication: Secure user registration and login with JWT (JSON Web Tokens).
- Product Management: CRUD operations for products, including categories, pricing, and inventory.
- Search and Filtering: Advanced search and filtering for products.
- Backend: Node.js, Express.js
- Database: SQLite3 (with sequelize for modeling)
- Authentication: JWT (JSON Web Tokens)
Follow these steps to set up the project locally:
- Clone the repository:
git clone https://github.com/SarvarbekUzProg/ecommers.git cd ecommers
- Set up environment variables .env:
PORT = 3000
ACCESS_TOKEN_SECRET=MYSECRETACCESS
REFRESH_TOKEN_SECRET=MYREFRESHTOKENSECRET
EMAIL_HOST_USER = youremail@gmail.com
EMAIL_HOST_PASSWORD = yourEmailAppPassword
- Run the server:
npm start