forked from utsavll0/calorieApp_server
-
Notifications
You must be signed in to change notification settings - Fork 2
Installation and setup
rishi2019194 edited this page Nov 25, 2023
·
3 revisions
Step 1: Install MongoDB using the following link:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows
Step 2: Git Clone the Repository
git clone https://github.com/rishi2019194/calorieApp_server.git
(OR) Download the .zip file on your local machine
https://github.com/rishi2019194/calorieApp_server.git
Step 3: Install the required packages by running the following command in the terminal
$ pip install -r requirements.txt
Step 4: Run the following commands in the terminal to set up the repository dependants
$ mkdir chat_history
$ python insert_food_data.py
Step 5: Add your email application password and the API key of OpenAI in credentials.py Add credentials.py to .gitignore file
Step 5: Run the following command in the terminal
$ python application.py
Step 6:
Open the URL in your browser:
http://127.0.0.1:5000/