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.
git clone https://github.com/POOL4T7/shop.git
cd shop
# Install dependencies
npm run install-packages
# for more info look at package.json on root folder
- 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
# make sure you are on root directory of project
npm start
# Server runs on http://localhost:5000 and client on http://localhost:3000
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