https://github.com/louis70109/fastapi-upload-example
It is a FastAPI upload example of docker development
https://github.com/louis70109/fastapi-upload-example
Last synced: about 2 months ago
JSON representation
It is a FastAPI upload example of docker development
- Host: GitHub
- URL: https://github.com/louis70109/fastapi-upload-example
- Owner: louis70109
- Created: 2021-04-08T02:15:45.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T11:14:55.000Z (over 2 years ago)
- Last Synced: 2025-03-28T00:01:31.659Z (2 months ago)
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastAPI Example
- GET '/': Health check.
- GET '/upload': Upload file page.
- POST '/upload': Upload multi-file API.
- Test case in 'tests/'.## Prerequisite
- Python 3.7+
- Docker## Development
```shell
pip install -r requirements.txt
pytest tests
python main.py
```or
```shell
docker-compose up
``````shell
curl http://localhost:5000/
```