Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.37 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.37 KB

React E-commerce App (Redux, Styled Components, JWT Authen ,Stripe.js)

Shoppy is a MERN stack eCommerce App.

Built with:

  • Node.js
  • React
  • Redux
  • Express
  • MongoDB
  • Axios

Backend Server

Server-side uses JSON Web Token (JWT) to access REST API.

Shppy Backend

Run Locally

1. Install Dependencies

$ npm install

2. Create a new env file

Create an env file - Set filename.env.prod file for production and .env.devfor development and save it in the root of your project folder and add the following configuration details. You can either use the same configuration details for both development and production but it's best to make separate projects. It can be found on your firebase project settings.

// SAMPLE CONFIG .env.dev, you should put the actual config details found on your project settings

REACT_APP_STRIPE = <YOUR_STRIPE_PUBLIC_KEY> 

3. Configure the backend server

Follow the instructions from the server-side repository.

4. Run development server

$ npm start

Build the project

$ npm run build