Fitness track website where a user can track their daily exercises, meals, weight, and set of personal health goals.
Created using Go + cockroachdb.
Project also running on
https://fitnesstracker-k5h0.onrender.comClone the project
git clone https://github.com/KaranLathiya/FitnessTracker.gitInstall Go version 1.21
go install 1.21 Install dependencies
go mod tidy Set variables in .env file
Start the server
go run server/server.goSwagger documentation for api
http://localhost:8080/swagger/index.html
To first time signup for new user --POST
http://localhost:8080/signup
To login for user --POST
http://localhost:8080/login
To add/update user profile details for user --PUT
To fetch profile details for user --GET
http://localhost:8080/user/profile
To change password for user --POST
http://localhost:8080/user/change-password
To get the otp in email for user --POST
http://localhost:8080/otp/request
To verify the otp for user --POST
http://localhost:8080/otp/verify
To set the new password after otp verification for user --POST
http://localhost:8080/forgot-password
To add meal details of user --POST
To update meal details of user --PUT
To delete meal details of user --DELETE
http://localhost:8080/user/meal
To add exercise details of user --POST
To update exercise details of user --PUT
To delete exercise details of user --DELETE
http://localhost:8080/user/exercise
To add weight details of user --POST
To update weight details of user --PUT
To delete weight details of user --DELETE
http://localhost:8080/user/weight
To add water details of user --POST
To update water details of user --PUT
To delete water details of user --DELETE
http://localhost:8080/user/water
To fetch monthly water details of user --GET
http://localhost:8080/user/alldetails?date=2024-02-06
To fetch yearly Weight Details of user --GET
http://localhost:8080/user/yearly-weight-details?year=2024
To fetch yearly CaloriesBurned details of user --GET
http://localhost:8080/user/yearly-caloriesburned-details?year=2024