Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/overloadedsam/tasty-spoon
Food ordering application using MERN stack with payment gateway integrated.
https://github.com/overloadedsam/tasty-spoon
Last synced: 2 days ago
JSON representation
Food ordering application using MERN stack with payment gateway integrated.
- Host: GitHub
- URL: https://github.com/overloadedsam/tasty-spoon
- Owner: OverloadedSam
- Created: 2021-03-30T16:05:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T17:12:03.000Z (almost 2 years ago)
- Last Synced: 2023-07-16T07:24:07.792Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://tasty-spoon.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
# Tasty Spoon
This project is a online food/grocery ordering web application developed using MERN stack with PayPal payment gateway implemented.
## Requirements
- `node >= 14.0.0`
- `npm >= 6.14.8`## Usage
$ git clone https://github.com/OverloadedSam/Tasty-Spoon.git
2. Move to the below locations and run `npm install` from there
$ cd Tasty-Spoon/frontend/
$ cd Tasty-Spoon/backend/3. Install project dependencies (For both frontend and backend).
$ npm install
## Environment Variables
You have to set the environment variables of your configuration before starting the server.
### 1. Environment variables for backend
Make a `.env` file in the `Tasty-Spoon/backend/` directory and set following environment variables.
- PORT = 8000
- API = /api/v1
- DB_CONNECTION_STRING = {mongoDB_connection_string}
- SALT = 10
- SECRET = {secret_required_for_jwt}
- JWT_EXPIRY = 1d
- PAYPAL_CLIENT_ID = {your_paypal_client_id}### 3. Environment variables for frontend
Place a `.env` file at `Tasty-Spoon/frontend/` directory and set following environment variables.
- REACT_APP_API_UR L= {backend_api_url} // e.g. http://localhost:8000/api/v1
## Running The Project
### Run backend (Node API)
$ cd backend/ // go to backend directory
$ npm start // run backend with hot reloading.// or you can run the backend with standard node command
$ node index.js### Run frontend (React app)
$ cd frontend/ // go to frontend directory
$ npm start