This project is a online food/grocery ordering web application developed using MERN stack with PayPal payment gateway implemented.
node >= 14.0.0
npm >= 6.14.8
$ git clone https://github.com/OverloadedSam/Tasty-Spoon.git
- Move to the below locations and run
npm install
from there
$ cd Tasty-Spoon/frontend/
$ cd Tasty-Spoon/backend/
- Install project dependencies (For both frontend and backend).
$ npm install
You have to set the environment variables of your configuration before starting the server.
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}
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
$ 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
$ cd frontend/ // go to frontend directory
$ npm start