Bowe Strickland
2018-10-27 6e49871feaa1a60549206cf5512c9fb7f3d5fd56
commit | author | age
f4bfa2 1 myproj
68f673 2 ======
c344e5 3
PP 4 Getting Started
5 ---------------
6
f4bfa2 7 - Change directory into your newly created project.
c344e5 8
3ec0fc 9     cd tutorial
c344e5 10
f4bfa2 11 - Create a Python virtual environment.
c344e5 12
f4bfa2 13     python3 -m venv env
c344e5 14
f4bfa2 15 - Upgrade packaging tools.
SP 16
2c0e3e 17     env/bin/pip install --upgrade pip setuptools
f4bfa2 18
SP 19 - Install the project in editable mode with its testing requirements.
20
21     env/bin/pip install -e ".[testing]"
22
1c3625 23 - Initialize and upgrade the database using Alembic.
SP 24
25     - Generate your first revision.
26
27         env/bin/alembic -c development.ini revision --autogenerate -m "init"
28
29     - Upgrade to that revision.
30
31         env/bin/alembic -c development.ini upgrade head
32
33 - Load default data into the database using a script.
f4bfa2 34
SP 35     env/bin/initialize_tutorial_db development.ini
36
37 - Run your project's tests.
38
39     env/bin/pytest
40
41 - Run your project.
42
43     env/bin/pserve development.ini