File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1
1
# python-flask
2
2
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
+ ~~~
You can’t perform that action at this time.
0 commit comments