-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
35 lines (24 loc) · 1.08 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
install new virtual enviroment:
>> 'virtualenv venv'
set current enviroment to active:
>> 'venv\Scripts\activate'
install Flask to current enviroment:
>> 'pip install Flask'
install Flask-RESTful to current enviroment:
>> 'pip install Flask-RESTful'
install six module to current enviroment:
>> 'pip install six'
install Flask-SQLAlchemy to current enviroment:
>> 'pip install Flask-SQLAlchemy'
create new sqlite database:
>> 'python test_create_db.py'
create new test data:
>> 'python test_create_test_data.py'
check if data is saved to database (dump users):
>> 'python test_list_all_data.py'
-- id = 1, username = user11, firstname = firstname11, lastname = lastname11, email = [email protected], created = 2013-09-17 22:55:00, status = [id = 1, name = Status001]
-- id = 2, username = user22, firstname = firstname22, lastname = lastname22, email = [email protected], created = 2013-09-17 22:55:00, status = [id = 1, name = Status001]
run http server:
>> 'python main_app.py'
-- * Running on http://127.0.0.1:5000/
-- * Restarting with reloader