.NET API + PostgreSQL boilerplate
ASP.NET Core Web API backed by Postgres. One click generates a complete, runnable bootstrap — docker-compose, Makefile, Dockerfile, CI and more.
The stack
.NET 8.0
PostgreSQL 5432
docker-compose.yml preview
# docker-compose.yml — generated by Stacktora
services:
api:
image: mcr.microsoft.com/dotnet/sdk:8.0
command: dotnet watch run
ports:
- "8080:8080"
env_file: [ .env ]
postgres:
image: postgres:18-alpine
ports:
- "5432:5432"
What you get
docker-compose.ymlMakefileDockerfileREADME.md.env.example.gitignore.dockerignore.github/workflows/ci.yml.tool-versions.editorconfigProcfile … and more
Quickstart
# clone, then one command to a running stack git clone … && cd api $ make setup # install toolchain + deps, build images $ make dev # boot the full stack # → api live at localhost:8080
Related templates
FastAPI + PostgreSQL
Lightweight async Python API with a Postgres database.
Pythonpostgres
Go API + PostgreSQL
Compiled Go HTTP API with a Postgres database.
Gopostgres
Rust API + PostgreSQL
Rust HTTP API (Axum-style) with a Postgres database.
Rustpostgres
Bun API + PostgreSQL
Ultra-fast Bun HTTP API with a Postgres database.
Bunpostgres
