Sign inSign up

rsandoval0408/todo-api

By rsandoval0408

Updated 9 months ago

A complete REST API for a To-Do list, built with Spring Boot, Java, and JPA.

Image
Languages & frameworks
0

1.1K

rsandoval0408/todo-api repository overview

Spring Boot To-Do List API

This is a complete, containerized REST API for a To-Do list, built with Java, Spring Boot, and Spring Data JPA.

This application is a portfolio project demonstrating a full backend, from code to a containerized image.

Source Code: https://github.com/rafaelSandovalR/todo-api


How to Run This Image

This image is self-contained and runs with an in-memory H2 database (no external database is required).

  1. Pull the image from Docker Hub:

    docker pull rsandoval0408/todo-api
    
  2. Run the container and map your local port 8080 to the container's port 8080:

    docker run -p 8080:8080 rsandoval0408/todo-api
    

    (If your local port 8080 is in use, you can map it to 8081 instead: docker run -p 8081:8080 ...)

  3. The API will be running and available at http://localhost:8080.


API Endpoints

You can use a tool like Postman to test the API:

  • GET /api/tasks: Get a list of all tasks.
  • GET /api/tasks/{id}: Get a single task by its ID.
  • POST /api/tasks: Create a new task.
  • PUT /api/tasks/{id}: Update an existing task.
  • DELETE /api/tasks/{id}: Delete a task.

Tag summary

Content type

Image

Digest

sha256:0b7bf6a2d

Size

137.9 MB

Last updated

9 months ago

docker pull rsandoval0408/todo-api