@@ -25,9 +25,8 @@ less efficient than a partial page update on the client side.
25
25
26
26
### Install development dependencies in a VSCode Dev Container
27
27
28
- If you use VSCode with Docker, the following VSCode Dev Container
29
- configuration will install all dependencies and automatically open the
30
- project in a container:
28
+ If you use VSCode with Docker to develop in a container, the following
29
+ VSCode Dev Container configuration will install all dependencies:
31
30
32
31
``` json
33
32
{
@@ -41,9 +40,12 @@ project in a container:
41
40
}
42
41
```
43
42
44
- Simply create a .devcontainer folder in the root of the project and add
45
- a devcontainer.json file with this content, and then “Reopen in
46
- Container” from View \> Command Palette.
43
+ Simply create a ` .devcontainer ` folder in the root of the project and
44
+ add a ` devcontainer.json ` file in the folder with the above content.
45
+ VSCode may prompt you to install the Dev Container extension if you
46
+ haven’t already, and/or to open the project in a container. If not, you
47
+ can manually select “Dev Containers: Reopen in Container” from View \>
48
+ Command Palette.
47
49
48
50
### Install development dependencies manually
49
51
@@ -130,24 +132,42 @@ account, verify a domain, get an API key, and paste the API key into the
130
132
131
133
### Start development database
132
134
133
- ` docker compose up -d `
135
+ ``` bash
136
+ docker compose up -d
137
+ ```
134
138
135
139
### Create database tables and default permissions/roles
136
140
137
- ` python migrations/set_up_db.py --drop `
141
+ ``` bash
142
+ python migrations/set_up_db.py --drop
143
+ ```
138
144
139
145
### Run the development server
140
146
141
147
Make sure the development database is running and tables and default
142
148
permissions/roles are created first.
143
149
144
- ` uvicorn main:app --host 0.0.0.0 --port 8000 --reload `
150
+ ``` bash
151
+ uvicorn main:app --host 0.0.0.0 --port 8000 --reload
152
+ ```
145
153
146
154
Navigate to http://localhost:8000/
147
155
156
+ ### Lint types with mypy
157
+
158
+ ``` bash
159
+ mypy .
160
+ ```
161
+
148
162
### Render the README
149
163
150
- ` quarto render README.qmd `
164
+ When updating the documentation, remember to make changes in the
165
+ README.qmd file, not the README.md file. Then run the following command
166
+ to render the README.md file:
167
+
168
+ ``` bash
169
+ quarto render README.qmd
170
+ ```
151
171
152
172
### Contributing
153
173
0 commit comments