Full Stack E-Commerce App built with React, using Firebase and Stripe API
and Stripe Payment Gateway
Follow these simple steps to run the project locally:
- Node.js (latest)
-
Create an account on Firebase if you have not yet.
-
Refer this link to learn basics of firebase, like how to setup project in React and stuff like that.
-
Create a
.env
file in the root directory of the project. Add environment-specific variables on new lines in the form ofNAME=VALUE
by following same structure as provided inenv.example
fileREACT_APP_API_KEY=<api_key> REACT_APP_AUTH_DOMAIN=<auth_domain> REACT_APP_PROJECT_ID=<project_id> REACT_APP_STORAGE_BUCKET=<storage_bucket> REACT_APP_MESSAGING_SENDER_ID=<sender_id> REACT_APP_APP_ID=<app_id> REACT_APP_MEASUREMENT_ID=<measurement_id> REACT_APP_DATABASE_URL=<database_url> # Fill the below variable afterwards REACT_APP_PUBLISHABLE_KEY=<stripe_publishable_key>
-
Make an account on Stripe and then after login go to dashboard.
-
Now we require the
publishable key
which can be easily found inside the Developers tab like thisGrab the token and insert it inside
REACT_APP_PUBLISHABLE_KEY
field in the.env
file of yours -
Install all the dependencies of
package.json
file by running below command in root directory.npm install
-
Run the following command in the root directory to start the project
npm start
🥳Viola! Project starts running at localhost:3000
The app is being updated weekly, as more work needs to be done Current functionality includes:
- Create an account or Sign In with Google
- Sign In
- Add items to Cart
- Remove item/items from cart
- Payment with Stripe (Testing Mode)
- Enable PWA
- Product Page
- Improve Overall UI/UX and fix bugs
- Responsive Design
- Recently Viewed Projects
And More! There's always room for improvement!