A simple, open-source and self-hosted habit tracker app.
- Simple UI 👌
- Dark mode 🌕
- Easy deployment with Docker. 🐋
Make sure you have Docker and Docker Compose installed.
- Clone the repo.
git clone https://github.com/FR0ST1N/MyDailies.git
- Go to project root.
cd MyDailies
- Set
JWT_SECRET_KEY
environment variable in the api Dockerfile. - Run docker compose.
docker compose up
- Create the first user (this user will be an admin and can add more users from the users page accessed from the menu).
curl -X POST http://localhost:8080/api/user/setup-admin \
-H 'Content-Type: application/json' \
-d '{"email": "[email protected]", "password": "password", "name": "Your Name", "timezone": "TZ database name"}'
List of tz database time zones
Make sure you have air installed. If not, install it from here.
- Start API server with
air
CD into the web directory and run the following commands.
- Install dependencies
npm ci
- Start the server
npm start
- API unit test can be run using
go test ./...
- API
gofmt -w -s .
- Web
npm run format