Skip to content

Commit 918de50

Browse files
authored
Adding project setup details
1 parent c3f06d5 commit 918de50

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,25 @@ This project aims at using the powerful REST Python framework "Flask" for buildi
77
- Associating a puppy with an owner
88
- Adding a new owner with Puppy ID
99
- Listing the number of puppies
10+
11+
## Project Setup
12+
Copy the required files in a directory. Then use the following steps to setup the project:
13+
14+
1. Create an optional virtual environment for flask project.
15+
2. Install python for running the project. (I have used Anaconda distribution here)
16+
3. Use the **requirements.txt** file for installing the dependencies. Use the following command for dependencies installation:
17+
*pip install -r requirments.txt*
18+
4. Test the installation by using the command *import flask*
19+
5. Change the directory to the folder where the files have been cloned/downloaded.
20+
6. Use the following commands to initiate the project
21+
22+
```python
23+
flask db init
24+
25+
flask db migrate -m "<Custom Message>"
26+
27+
flask db upgrade
28+
```
29+
7. Initiate the python project using the following command: **python app.py**
30+
8. Finally, test the project using - **http://127.0.0.1:5000"
31+

0 commit comments

Comments
 (0)