ScalaintermediatebackendAI generated

Task Manager REST API with Akka HTTP

Build a JSON REST API for creating, updating, and completing tasks, backed by an in-memory or H2 store. Learners practice Akka HTTP routing, JSON marshalling with spray-json, and case-class based domain modeling.

Estimate
~12h
Steps
6
Completed by
0
Proposed by
codeseed.app

Akka HTTP · spray-json · H2

Project roadmap

  1. 01

    Set up the Akka HTTP server

    ~2h

    Bootstrap an Akka HTTP application with routing and actor system configuration.

  2. 02

    Define CRUD routes for tasks

    ~2.5h

    Implement routes for creating, listing, updating, and completing tasks.

  3. 03

    Add JSON marshalling

    ~1.5h

    Configure spray-json formatters for the Task case class and API DTOs.

  4. 04

    Integrate H2 persistence

    ~2.5h

    Store tasks in an embedded H2 database instead of in-memory collections.

  5. 05

    Add request validation

    ~1.5h

    Validate incoming JSON payloads and return meaningful error responses.

  6. 06

    Write route tests

    ~2h

    Use Akka HTTP TestKit to test each endpoint's behavior.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~12h · 6 steps

Tech stack

Akka HTTPspray-jsonH2