This repository is the example I've been using for my quick talk at Clermont'ech API Hour #47. Slides are available at: https://docs.google.com/presentation/d/1DtpLMC59WfuuPMpW9ZvoU50SEd8i_D5jOyZILfuze_s/edit?usp=sharing
This repository can be used as an example to bootstrap your FastAPI project. It uses a SQLite database and a full dump is available (in the dump.sql
file).
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ ./import.sh
$ uvicorn app.main:app --reload
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [76014] using statreload
INFO: Started server process [76016]
INFO: Waiting for application startup.
INFO: Application startup complete.
Enjoy!
URLs to access endpoints are available at:
- Swagger URL : http://127.0.0.1:8000/docs
- Redoc : http://127.0.0.1:8000/redoc
No specific license for this project, feel free to fork it and start developing using this (great!) framework. Happy coding!