A simple weight tracking application with a web-based interface that allows users to log their weight over time and visualize it using a chart.
- Log weight entries with date validation.
- View a historical graph of weight changes over time.
- Weight over time is displayed in a chart.
- Data is persisted in a JSON file (
weights.json
).
See below screenshot for example
- Backend: Go (net/http)
- Frontend: HTML, JavaScript, Chart.js
- Data Storage: JSON files
- Go installed (1.16+ recommended)
- A working web browser
- Clone the repository:
git clone https://github.com/thomaschaplin/kilokeeper.git cd kilokeeper
- Create required files and directories:
mkdir data touch data/weights.json
- Initialize the
weights.json
file:[]
- Run the application:
go run main.go
- Access the web app:
Open
http://localhost:8080
in your browser.
GET /weights
POST /weights/add
{
"date": "DD/MM/YYYY",
"kilograms": 75.5
}
- Store data in a database instead of JSON files.
- Implement user authentication.
- Add BMI calculation.
- Add age to chart based on global date of birth
MIT License
Made with ❤️ by Thomas Chaplin