https://github.com/remarkablemark/fastapi-template
⚡ FastAPI Template
https://github.com/remarkablemark/fastapi-template
api backend backend-api fastapi fastapi-template python python3 template
Last synced: 3 months ago
JSON representation
⚡ FastAPI Template
- Host: GitHub
- URL: https://github.com/remarkablemark/fastapi-template
- Owner: remarkablemark
- License: mit
- Created: 2026-01-20T00:43:28.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2026-04-03T04:30:18.000Z (3 months ago)
- Last Synced: 2026-04-03T12:54:49.942Z (3 months ago)
- Topics: api, backend, backend-api, fastapi, fastapi-template, python, python3, template
- Language: Python
- Homepage: https://github.com/fastapi/full-stack-fastapi-template/tree/master/backend
- Size: 1.14 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Agents: AGENTS.md
Awesome Lists containing this project
README
# fastapi-template
[](https://codecov.io/gh/remarkablemark/fastapi-template)
[](https://github.com/remarkablemark/fastapi-template/actions/workflows/test.yml)
[](https://github.com/remarkablemark/fastapi-template/actions/workflows/lint.yml)
⚡ [FastAPI](https://fastapi.tiangolo.com/) template inspired by [Full Stack FastAPI Template](https://fastapi.tiangolo.com/project-generation/).
## Prerequisites
[uv](https://docs.astral.sh/uv/#installation):
```sh
brew install uv
```
## Install
Clone the repository:
```sh
git clone https://github.com/remarkablemark/fastapi-template.git
cd fastapi-template
```
Install the dependencies:
```sh
uv sync
```
## Available Scripts
In the project directory, you can run:
### `uv run pre-commit install`
Installs the pre-commit script.
### `uv run fastapi dev`
Runs the app in development mode:
- Server: http://127.0.0.1:8000
- Documentation: http://127.0.0.1:8000/docs
The server will reload if you make edits.
### `uv run fastapi run`
Runs the app in production mode.
### `uv run ruff format`
Formats the code (replaces Black).
### `uv run ruff check`
Lints the code and checks import sorting (replaces isort).
### `uv run ruff check --fix`
Auto-fixes linting issues and sorts imports.
### `uv run coverage run -m pytest && uv run coverage report`
Runs tests with coverage reporting (fails if coverage is below 100%).
## License
[MIT](https://github.com/remarkablemark/fastapi-template/blob/master/LICENSE)