Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehradevesh2022/foodapp
A backend code base of food ecommerce web application adapted from the EatFit.in concept. Hosted at Heroku
https://github.com/mehradevesh2022/foodapp
cockie ddos express-js jwt-authentication mongoose mvc-architecture ngrok nodejs razorapi schema
Last synced: 28 days ago
JSON representation
A backend code base of food ecommerce web application adapted from the EatFit.in concept. Hosted at Heroku
- Host: GitHub
- URL: https://github.com/mehradevesh2022/foodapp
- Owner: MehraDevesh2022
- Created: 2022-09-07T04:10:21.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T11:55:25.000Z (about 2 years ago)
- Last Synced: 2024-04-14T10:00:29.758Z (7 months ago)
- Topics: cockie, ddos, express-js, jwt-authentication, mongoose, mvc-architecture, ngrok, nodejs, razorapi, schema
- Language: JavaScript
- Homepage: https://cult-food-app.herokuapp.com/
- Size: 10.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FoodApp razor pay API
## Steps
### Backend - : Checkout
* signup /login into razorpay account
* go to settings in dashboard
* click on API keys option
* generate API Key
* npm i razorpay
* create instance by passing public key and private key
* create the order with amount ,currency , recipet and notes**NOTE**:
* We only serve html file from a defined folder .
* TO enable that feature we have use express.static
### Frontend :
* Import cdn of razorpay
* add event lsitener to make a backend request to generate a checkout order
* get deatils from there
* open checkout page### Backend :validation -> to tell backend whether payment was done or not
* We need to create a webhook or a route where razorpay would make a request for validation
* Note : Route should be deployed (public)
* for the time being we are using ngrok
* To start Command : ngrok http [portNumber]
**Setup WebHook**
* go to setting page of razorpay admin panel
* webhook create -> with https route and a webhook secret