Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

w3bdesign/react-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netlify Status

React Ecommerce

This is currently a work in progress.

Note that it currently does not support IE 11, but it is possible to add support via polyfills (https://www.npmjs.com/package/react-app-polyfill) and a redesign.

Features

  • Authentication with Firestore
  • Data storage with Google Firebase
  • Registration and login with email/password
  • Redux
  • Redux-persist
  • Shopping cart
  • Reselect (for Redux)
  • Stripe
  • Styled components (CSS in JS)
  • Fully responsive design
  • Detects IE and shows a warning that it is not supported

Setup

Clone the repo and do a npm install

Setup a Firebase account with Google authentication and local authentication enabled, then add a Firebase database with a collection called users and add a document with the fields:

  • email
  • createdAt
  • displayName

Then create a Stripe account and copy the publishable API key. This will be entered into the .env file later.

Then create a .env file in the application root directory with the following variables (you can find this information in Firebase).

Follow this guide if you are uncertain: https://www.oreilly.com/ideas/implement-oauth0-in-15-minutes-with-firebase

REACT_APP_APIKEY=INSERT THIS FROM GOOGLE
REACT_APP_AUTH_DOMAIN=INSERT THIS FROM GOOGLE
REACT_APP_DATABASEURL=INSERT THIS FROM GOOGLE
REACT_APP_PROJECTID=INSERT THIS FROM GOOGLE
REACT_APP_STORAGEBUCKET=INSERT THIS FROM GOOGLE
REACT_APP_MESSAGINGSENDERID=INSERT THIS FROM GOOGLE
REACT_APP_APPID=INSERT THIS FROM GOOGLE
REACT_APP_MEASUREMENTID=INSERT THIS FROM GOOGLE
REACT_APP_STRIPEKEY=INSERT THIS FROM STRIPE

Start the application with either npm start or yarn start

TODO

About

Ecommerce in React utilizing Redux, React-router and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5