Skip to content

POOL4T7/shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shop

Fully authenticated with JWT-token, google reCaptcha for distinguish between human and bot. e-commerce app built with the MERN stack along with Redux for state management.




Clone the project

git clone https://github.com/POOL4T7/shop.git
cd shop

Install dependencies for server/client

# Install dependencies
npm run install-packages

# for more info look at package.json on root folder

Before starting the server make a .env file on root folder and add your constant value

  • NODE_ENV
  • MONGO_URL
  • JWT_SECRET
  • PAYPAL_CLIENT_ID (if you want to add payPal-Sdk)
  • RECAPTCHA_SECRET_KEY (if you want to add google reCaptcha)

if you want to add google reCaptcha then make a another .env file in frontend folder and add your constant value

  • REACT_APP_RECAPTCHA_KEY

Run the server && client simultaneously

# make sure you are on root directory of project
npm start
# Server runs on http://localhost:5000 and client on http://localhost:3000

Deployment

There is a Heroku post build script so that you do not have to compile your React frontend manually, it is done on the server. Simply push to Heroku and it will build and load the client index.html page

Releases

No releases published

Packages

No packages published

Languages