commit | author | age
|
293942
|
1 |
myproj |
45735d
|
2 |
====== |
458d51
|
3 |
|
SP |
4 |
Getting Started |
|
5 |
--------------- |
|
6 |
|
293942
|
7 |
- Change directory into your newly created project. |
458d51
|
8 |
|
40dd03
|
9 |
cd tutorial |
458d51
|
10 |
|
293942
|
11 |
- Create a Python virtual environment. |
458d51
|
12 |
|
293942
|
13 |
python3 -m venv env |
458d51
|
14 |
|
293942
|
15 |
- Upgrade packaging tools. |
SP |
16 |
|
|
17 |
env/bin/pip install --upgrade pip setuptools wheel |
|
18 |
|
|
19 |
- Install the project in editable mode with its testing requirements. |
|
20 |
|
|
21 |
env/bin/pip install -e ".[testing]" |
|
22 |
|
|
23 |
- Configure the database. |
|
24 |
|
|
25 |
env/bin/initialize_tutorial_db development.ini |
|
26 |
|
|
27 |
- Run your project's tests. |
|
28 |
|
|
29 |
env/bin/pytest |
|
30 |
|
|
31 |
- Run your project. |
|
32 |
|
|
33 |
env/bin/pserve development.ini |