-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (24 loc) · 796 Bytes
/
README
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
36
37
38
# OpenAPI generated FastAPI server
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonFastAPIServerCodegen
## Requirements.
Python >= 3.7
## Installation & Usage
To run the server, please execute the following from the root directory:
```bash
pip3 install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8080
```
and open your browser at `http://localhost:8080/docs/` to see the docs.
## Running with Docker
To run the server on a Docker container, please execute the following from the root directory:
```bash
docker-compose up --build
```
## Tests
To run the tests:
```bash
pip3 install pytest
PYTHONPATH=src pytest tests
```