- Now Live @ https://storefrontwebapp.herokuapp.com/
- Product pagination + reviews/ratings
- Checkout process involving a sequence of screens and the PayPal Payments API to may for created orders
- Designated admins can sign in and make product/user/order changes straight to the DB
- This allows the store owner to mark orders as delivered and manage items inventory/stock aswell
Create a .env file in then root and add the following
NODE_ENV = development
PORT = 5000
MONGO_URI = your mongodb uri
JWT_SECRET = 'abc123'
PAYPAL_CLIENT_ID = your paypal client id
npm install
cd frontend
npm install
# Run frontend (:3000) & backend (:5000)
npm run dev
# Run backend only
npm run server
The following commands (defined in package.json "scripts") can be used to wipe the user and product data or overwirte it with sample data.
# Fill db with sample users and products
npm run data:import
# Destroy data completely
npm run data:destroy
Sample User Logins
[email protected] (Admin)
123456
[email protected] (Customer)
123456
[email protected] (Customer)
123456