An E-commerce app for Coffee Beans Selling with Payment gateway intregation.
- Payment Gateway Intregation
- Admin Dashboard
- Single Page App(SPA)
- Mobile responsive
Client: React, React-Stripe-Checkout, Bootstrap
Server: Node, MongoDB, Express, Mongoose, JWT, Stripe,
To run this project, you will need to add the following environment variables to your frontend and backend .env file
Backend env
DB_URL
PRIVATE_STRIPE_KEY
SECRET=random string for jwt goes here
Frontend env
REACT_APP_BACKEND=localhost:8000/api
STRIPE_KEY=stripe publisable key goes here
Clone the project
git clone https://github.com/hillbyte/coffee-bean-shop.git
Go to the project backend and frontend directory one by one
cd store-backend
cd store-frontend
Install dependencies
npm install
Start the backend server
node app.js
Start the frontend client
npm start
GET /api/products
GET /api/product/:productId
POST /api/product/create/:userId
PUT /api/product/:productId/:userId
DELETE /api/product/:productId/:userId
There are more five routes available in backend
Explore following routes by visiting backend routes dir
auth route, user route, category route, order route, payment route