Workout Tracker

App to let users track their workouts and progress.

Start building, submit solution and get feedback from the community.
2Submit Solution·
5 upvotes10 upvotes

This project involves creating a backend system for a workout tracker application where users can sign up, log in, create workout plans, and track their progress. The system will feature JWT authentication, CRUD operations for workouts, and generate reports on past workouts.

Requirements

You are required to develop an API for a workout tracker application that allows users to manage their workouts and track their progress. Your first task is to think about the database schema and the API endpoints that will be needed to support the application’s functionality. Here are some of the key features you should consider:

Exercise Data

You should write a data seeder to populate the database with a list of exercises. Each exercise should have a name, description, and category (e.g., cardio, strength, flexibility) or muscle group (e.g., chest, back, legs). Exercises will be used to create workout plans.

User Authentication and Authorization

Users will be able to sign up, log in, and log out of the application. You should use JWTs for authentication and authorization. Only authenticated users should be able to create, update, and delete workout plans. Needless to say, users should only be able to access their own workout plans.

  • Sign-Up: Allow users to create an account.
  • Login: Allow users to log in to their account.
  • JWT: Use JSON Web Tokens for authentication.

Workout Management

Users will be able to create their workout plans. Workout plans should consist of multiple exercises, each with a set number of repetitions, sets, and weights. Users should be able to update and delete their workout plans. Additionally, users should be able to schedule workouts for specific dates and times.

  • Create Workout: Allow users to create workouts composed of multiple exercises.
  • Update Workout: Allow users to update workouts and add comments.
  • Delete Workout: Allow users to delete workouts.
  • Schedule Workouts: Allow users to schedule workouts for specific dates and times.
  • List Workouts: List active or pending workouts sorted by date and time.
  • Generate Reports: Generate reports on past workouts and progress.

Constraints

You are free to choose the programming language and database of your choice. Actual decisions for the database schema, API endpoints, and other implementation details are up to you. However, you should consider the following constraints:

  • Database: Use a relational database to store user data, workout plans, and exercise data.
  • API: Develop a RESTful API to interact with the database.
  • Security: Implement JWT authentication to secure the API endpoints.
  • Testing: Write unit tests to ensure the correctness of your code.
  • Documentation: Learn about OpenAPI Specs. Document your API endpoints and provide examples of how to use them.

This project is a great way to practice building a backend system for a real-world application. You will learn how to design a database schema, implement user authentication, and create RESTful API endpoints. Additionally, you will gain experience in writing unit tests and documenting your code.

Found a mistake? Help us improve.

Actively Maintained

We are always improving our content, adding new resources and adding features to enhance your learning experience.

Join the Community

roadmap.sh is the 7th most starred project on GitHub and is visited by hundreds of thousands of developers every month.

Rank 7th  out of 28M!

294K

GitHub Stars

Star us on GitHub
Help us reach #1

+90k every month

+1M

Registered Users

Register yourself
Commit to your growth

+1.5k every month

27K

Discord Members

Join on Discord
Join the community

Roadmaps Best Practices Guides Videos FAQs YouTube

roadmap.sh by @kamrify

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh · Terms · Privacy · Advertise ·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.