Skip to content

Commit 89852d9

Browse files
committed
update readme
1 parent d4e63a2 commit 89852d9

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,45 @@
11
# python-flask
22
Python API with Flask and SQLAlchemy
3+
4+
# Create TODO Task
5+
6+
Simple API to add, update and delete TODO task to demonstrate flask and SQLAlchemy with Python.
7+
8+
## Running the sample
9+
10+
1. Build the server
11+
12+
~~~
13+
pip3 install -r requirements.txt
14+
~~~
15+
16+
2. Run the server from virtual environment
17+
18+
~~~
19+
source env/bin/activate
20+
21+
python app.py
22+
~~~
23+
24+
25+
3. Run from localhost
26+
27+
~~~
28+
python app.py
29+
30+
Browse to http://localhost:1212/
31+
~~~
32+
33+
## Deployment
34+
While you can run from localhost, we also provide Profile, so that it's ready to be deployed into Heroku.
35+
36+
Deploy to Heroku by connecting the repo from Github
37+
38+
~~~
39+
heroku login
40+
heroku create <app-name>
41+
42+
git add .
43+
git commit -m "first commit"
44+
git push
45+
~~~

0 commit comments

Comments
 (0)