Skip to content

MERN Stack E-commerce App for Coffee Beans Selling with Payment gateway intregation.

Notifications You must be signed in to change notification settings

hillbyte/coffee-bean-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coffee Bean E-commerce Store

An E-commerce app for Coffee Beans Selling with Payment gateway intregation.

Features

  • Payment Gateway Intregation
  • Admin Dashboard
  • Single Page App(SPA)
  • Mobile responsive

Tech Stack & Library

Client: React, React-Stripe-Checkout, Bootstrap

Server: Node, MongoDB, Express, Mongoose, JWT, Stripe,

Environment Variables

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

Run Locally

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

API Reference

Get all products

  GET /api/products

Get a single product

  GET /api/product/:productId

Create product

  POST /api/product/create/:userId

Update product

  PUT /api/product/:productId/:userId

Delete product

  DELETE /api/product/:productId/:userId

Other routes

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

Releases

No releases published

Packages

No packages published

Languages