Task Management A short preview of Task Management

Task Management

Last updated 26 October 2026 · Written by Reyhaneh, backend developer of Icarus Agency

Open the project

What it is

Sign up, log in, then organise tasks by collection, deadline, and severity.

The backend is a FastAPI API on PostgreSQL. The frontend is a React app that talks to it with a bearer token. Collections and tasks belong to the person who is signed in.

How it is built

The interface, the API, and the database are separate pieces that ship together.

  • Backend: FastAPI, SQLAlchemy 2.0 with async sessions, Alembic, Pydantic v2, Argon2 passwords, and JWT.
  • Database: PostgreSQL 17, started with Docker Compose.
  • Frontend: React 19, Vite, TypeScript, Tailwind, TanStack Query, and React Router.
  • Redis 8 is on the task network only. The API does not call it yet.

Project structure

The repository keeps the interface, the API, and the way it is published in separate places.

  • The backend holds the FastAPI app, Alembic migrations, and tests.
  • The frontend holds the Vite and React interface.
  • Docker Compose starts PostgreSQL, and can also build the full stack: the API, the interface, PostgreSQL, and Redis.
  • A Nginx site publishes the app at task-management.icarusdev.agency, on its own, apart from the agency site.

Signing in

Creating an account takes an email, a username, and a password. Logging in takes an email or a username, plus the password. Both return an access token and the current user.

Later requests send that token on the Authorization header as a bearer token. Logging out happens in the browser: the interface deletes the token it saved. Tokens last 24 hours.

The API

Every route sits under /api/v1. Collections and tasks belong to the signed-in user. Asking for someone else’s resource returns 404, not 403.

Severity is low, medium, high, or critical. A task is overdue when its deadline is in the past and the task is not done.

Deleting a collection leaves its tasks uncategorised. Errors use one shape: a code, a message, and details. A duplicate email, for example, points at the email field.

  • GET /health checks the API and the database.
  • POST /auth/signup creates an account and returns a token.
  • POST /auth/login returns a token.
  • GET /auth/me returns the current user.
  • GET and POST /collections list and create collections.
  • GET, PATCH, and DELETE /collections/{id} read, update, or delete one collection.
  • GET /tasks lists tasks, optionally by collection and by whether they are done. Tasks with a deadline come first, earliest first. Tasks with no deadline come last.
  • GET /tasks/grouped returns the dashboard: each collection with its tasks.
  • POST /tasks creates a task with a title, and optionally a description, a deadline, a severity, and a collection.
  • GET, PATCH, and DELETE /tasks/{id} read, update, or delete one task.
  • PATCH /tasks/{id}/toggle marks a task done or not done, and records when it was completed.

How it runs together

The full stack builds the backend and the frontend, and starts PostgreSQL 17 and Redis 8. The interface proxies API and health checks to the backend on the private network.

PostgreSQL, Redis, and the API stay on that network. Nginx on the host is the only public entry, and it serves the app at task-management.icarusdev.agency. Redis here belongs to this project. It is not the agency site’s Redis, and the API does not call it yet.

Back to sample works

Project Brief

Tell us about your project so we can understand your needs, define the scope accurately, and recommend the right solution.

Contact Details

1. Project

2. Problem & Goal

3. Technical Details

What do you already have?

4. Scope

5. Timeline & Budget

6. Additional Information