Skip to content

larpey/fitlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FitLog

A workout tracking app. React frontend, Express backend, MongoDB database.

How to run

You need Node 18+. No need to install MongoDB - it uses an in-memory db.

Start the server:

cd server
npm install
npm start

Server runs on port 4000.

In another terminal, start the client:

cd client
npm install
npm run dev

Open http://localhost:5173 in your browser.

Tests

Backend:

cd server
npm test

Frontend:

cd client
npm test

API endpoints

  • POST /api/auth/register - register new user
  • POST /api/auth/login - login
  • GET /api/workouts - list workouts (auth required)
  • POST /api/workouts - create workout (auth required)
  • GET /api/workouts/:id - get one workout (auth required)
  • PUT /api/workouts/:id - update workout (auth required)
  • DELETE /api/workouts/:id - delete workout (auth required)
  • GET /api/stats - dashboard stats (auth required)

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors