- Full featured shopping cart
- Product reviews and ratings
- Top products carousel
- Product pagination
- Product search feature
- User profile with orders
- Admin product management
- Admin user management
- Admin Order details page
- Mark orders as delivered option
- Checkout process (shipping, payment method, etc)
- PayPal / credit card integration
- Database seeder (products & users)
- Clone this repo to your local machine using
https://github.com/codebudy5247/Eshop
Install npm dependencies using npm install
$ npm install
Set up a MongoDB database either locally or provision a free database with
MongoDB Atlas
Create a .env file in the root directory
Set up required environment variables
PORT =
MONGO_URI =
MONGO_URI_DEV= // mongodb://localhost:27017/ecommerce-api
JWT_SECRET = // xyz
NODE_ENV =
PAYPAL_CLIENT_ID = // Client id for Paypal
PAYPAL_CLIENT_SECRET = // Paypal API secret
You can use the following commands to seed the database with some sample users and products as well as destroy all data
# Import data
npm run data:import
# Destroy data
npm run data:destroy
In the root directory run both the backend and the front end with the following command
npm run server
The app should launch automatically 😄