CheckOut the live Demo --> Click Here
Card Payment: Online Credit/Debit card Payment is supported with fully secure Stripe(Financial services company) with card detection.
React Context API: React context API used for state management to keep it simple and everything in sync inside the application.
First you need run Create React App
in the directory you want to Create the project. Visit their website to get started with React.
Click Here to visit their website.
NOTE: You must have node.js installed on your system along with NPM
You need to Install following dependencies in order to complete this project
npm install @material-ui/core @material-ui/icons firebase react-router-dom
React-router-dom
is responsible for the navigation in this web app.
For Animation
npm install React-flip-move
For Payments
npm install @stripe/stripe-js @stripe/react-stripe-js
Visit thier Website for more Info --> Stripe.com
Note: It is not mandatory to use stripe. you can use other service provider according to your need.
For Date/Time Fromatting
npm install moment
For Currency Formatting
npm install react-currency-format
For Cloud Functions
Should be installed in functions folder
npm install cors express firebase-admin firebase-functions stripe
for Frontend
npm install axios
axios
would be responsible for the working of cloud function as well as Frontend to backend Connection. It Will handle all the payment request and act as bridge between stripe(For payment) and the application.
In the project directory, you can run:
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
See the section about deployment for more information.