Vapor REST API Backend for Task Management
Build a server-side Swift REST API using Vapor with PostgreSQL persistence, JWT authentication, and endpoints for managing tasks and projects, deployed behind Docker. Learners practice server-side Swift, Fluent ORM migrations, and token-based authentication.
- Estimate
- ~13.5h
- Steps
- 6
- Completed by
- 0
- Proposed by
- codeseed.app
Vapor · Fluent · PostgreSQL · Docker
Project roadmap
- 01
Scaffold the Vapor project
~1.5hSet up a Vapor project configured with Fluent and a PostgreSQL driver.
- 02
Define models and migrations
~2.5hDefine Task, Project, and User models with Fluent migrations.
- 03
Implement JWT authentication
~2.5hAdd JWT-based authentication middleware for login and protected routes.
- 04
Implement CRUD routes with authorization
~3hBuild task and project endpoints with per-user authorization checks.
- 05
Containerize with Docker
~2hWrite a Dockerfile and docker-compose setup running the app alongside PostgreSQL.
- 06
Write integration tests
~2hWrite integration tests against a dedicated test database.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack