The repository contains backend code for eshop / e-commerce application. Frontend code can be found here.
This application contains all the routes which is used by admin app as well as client app.
- Admin
- View data such as orders, products, total sales etc... on the dashboard
list
/add
/update
/delete
productslist
/add
/update
/delete
categorieslist
orders andupdate
order status
- User
- Login into application
- View products
- View categories
- Filter products by category
- Add products to cart
- Update product quantity of cart
- Place order
- Do online payment using stripe
- NodeJS (Runtime)
- Javascript (Language)
- Express (REST API)
- Stripe (Payment Gateway)
- Mongodb (Database)
- Mongoose (ODM)
- Multer (file upload)
- Bcrypt (Password encryption)
- JWT (Authentication and Authorization)
- Mongo Express (database tool)
API documentation can be found in APIs.http file.
- Install Docker with Compose
- Clone project
- Copy
.env-example
and paste as.env
and update env variables - Run
docker compose up -d
- Add first admin use manually using mongo express at http://localhost:8081/db/eshop/users
- Run project
- Visit http://localhost:8081/db/eshop
- Import backup json files to respective collections
- Copy uploads directory from backup to public directory
- Verify the changes