Skip to content

HabitLab is an habit tracker application where you can start with your new habits!

Notifications You must be signed in to change notification settings

matemorinigo/HabitLab-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HabitLab-backend

HabitLab is an habit tracker application where you can start with your new habits!

A REST API developed in Java using Spring framework, based on the 3-layer pattern (controller, service, repository) and implementing practices such as the use of DTOs, centralized exception handling and secure configurations with Spring Security.

Key Features

  • Security with Spring Security
    • Implementation of JWT to secure endpoints
    • Basic Auth also available
    • Defined roles for users with differentiated access
  • Database Dockerization (and soon the whole backend)
    • Use of PostgreSQL as database management system
    • Use of docker-compose to simplify the development environment setup
  • Custom Exception handling
    • Specific exceptions for common errors
    • Consistent responses with appropiate HTTP status codes and custom messages
  • Java Streams
    • Use of Streams for manipulation of collections, such as filtering occurrences or calculating habit streaks
  • Spring Data JPA
    • JPA-based repositories for data access
    • Custom queries where needed
  • DTOs (Data Transfer Objects)
    • Use of DTOs to decouple persistance entities from the responses exposed in the endpoints

How to build it?

Just clone the repo, cd into the folder and run docker-compose up --build

About

HabitLab is an habit tracker application where you can start with your new habits!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published