Skip to content

Hfanes/java-tasks

Repository files navigation

📝 Task Management App

Getting Started

A full-stack Task Management application built with:

🚀 Features

  • Create, edit, delete task lists
  • View and manage tasks within each list
  • RESTful API built with Spring Boot
  • PostgreSQL for persistent storage

📦 Setup

1. Clone the Repo

git clone https://github.com/Hfanes/java-tasks
cd java-tasks

2. Backend

cd tasks-backend

Create .env or update application.properties or application.yml:

spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
spring.jpa.hibernate.ddl-auto=update

Run the backend:

./mvnw spring-boot:run

(Optional) Database container

Setup your docker-compose file

services:
  db:
    image: postgres:latest
    ports:
      - "5431:5431"
    restart: always
    environment:
      POSTGRES_DB: POSTGRES_DB
      POSTGRES_USER:
      POSTGRES_PASSWORD:

Run your database container

docker-compose up

API should be available at: http://localhost:8080

3. Frontend Setup (Next.js)

cd frontend
npm install
npm run dev

App runs at: http://localhost:3000

4. Run the Full App with Docker

Setup both Dockerfiles and run docker-compose:

docker-compose up --build

5. 🧪 API Endpoints

Task Lists

GET /task-lists

POST /task-lists

GET by ID /task-lists/{taskListId}

UPDATE /task-lists/{taskListId}

DELETE /task-lists/{taskListId}

Tasks

GET /task-lists/{taskListId}/tasks

POST /task-lists/{taskListId}/tasks

GET by ID /task-lists/{taskListId}/tasks/{taskId}

UPDATE /task-lists/{taskListId}/tasks/{taskId}

DELETE /task-lists/{taskListId}/tasks/{taskId}

4. Preview

preview of app preview of app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages