Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 925 Bytes

File metadata and controls

47 lines (31 loc) · 925 Bytes

DevHabit

Habit-Tracker for software developers. Runs fully local – no external infrastructure or authentication needed.

Prerequisites

  • Java 21+ (tested with OpenJDK 24)
  • Node.js 20+ and npm

Start Backend

cd backend
./mvnw spring-boot:run

The API runs at http://localhost:8080. The H2 console is available at http://localhost:8080/h2-console (JDBC URL: jdbc:h2:file:./data/devhabits, user: sa, no password).

Data Storage

All data is persisted in a local H2 database file at backend/data/devhabits.mv.db. Data survives server restarts.

To reset the database and start fresh, delete the file:

rm backend/data/devhabits.mv.db

Start Frontend

cd frontend
npm install
npm run dev

The app runs at http://localhost:5173. API requests are proxied to the backend.

Run Tests

# Backend
cd backend && ./mvnw test

# Frontend
cd frontend && npm test