You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### 2. Install dependecies with poetry or without it
70
+
```bash
61
71
cd project_name
62
-
# Poetry install (and activate environment!)
72
+
### Poetry install (python3.10)
63
73
poetry install
64
-
# Setup two databases
74
+
75
+
### Optionally there are also requirements
76
+
python3.10 -m venv venv
77
+
source venv/bin/activate
78
+
pip install -r requirements-dev.txt
79
+
```
80
+
Note, be sure to use `python3.10` with this template with either poetry or standard venv & pip, if you need to stick to some earlier python version, you should adapt it yourself (remove python3.10+ specific syntax for example `str | int`)
81
+
82
+
### 3. Setup databases
83
+
```bash
84
+
### Setup two databases
65
85
docker-compose up -d
66
-
# Alembic migrations upgrade and initial_data.py script
86
+
87
+
### Alembic migrations upgrade and initial_data.py script
67
88
bash init.sh
68
-
# And this is it:
89
+
```
90
+
### 4. Now you can run app
91
+
```bash
92
+
### And this is it:
69
93
uvicorn app.main:app --reload
70
94
71
-
#Optionally - use git init to initialize git repository
95
+
#Then probably - use git init to initialize git repository
72
96
```
73
97
74
-
####Running tests
98
+
### Running tests
75
99
76
100
```bash
77
101
# Note, it will use second database declared in docker-compose.yml, not default one
0 commit comments