Skip to content

A web-app to listing products and processing carts payment via stripe

Notifications You must be signed in to change notification settings

Sunny-unik/stripe-cart-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stripe-cart-task

A Web App for list products and payment gateway via cart

Tech Stack

  • Node/Express for server
  • React for frontend
  • Mongodb for database
  • Stripe for payments

Prerequisites

  • Node & npm installed on your machine
  • MongoDB instance running on your local machine
  • Stripe account with test business setup & configure a customer from test dashboard

Project Setup

- Frontend

  1. Open terminal and goto client directory run npm i for install dependencies
  2. Copy .env.example & paste on same location with a new name .env
  3. Update env inside .env file with your actual envs
  4. Now run npm run dev it will serve frontend on [http://localhost:5173]

- Backend

  1. Open another terminal and goto server directory run npm i for install dependencies
  2. Copy .env.example & paste on same location with a new name .env
  3. Update env inside .env file with your actual envs
  4. Import Products data in products collection inside mongo database
  5. Now run npm run dev it will serve backend routes on [http://localhost:4000]