Skip to content

GLRandula/workout-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‹οΈ FastAPI Workout Scheduler API

A FastAPI backend for managing workout schedules. This API allows multiple users to create, read, and delete workout schedules securely using authentication.

alt text

πŸš€ Features

  • User Authentication
  • CRUD Operations for workout schedules
  • Multi-user Support (Users can manage their own schedules)
  • SQLAlchemy ORM for database operations
  • Auto-generated API docs with Swagger (/docs)
  • FastAPI with Uvicorn for high performance

πŸ› οΈ Tech Stack

  • Backend: FastAPI, Pydantic, SQLAlchemy
  • Database: SQLite
  • Authentication: OAuth2 + JWT
  • Server: Uvicorn

πŸ“Έ API Endpoints

Method Endpoint Description Auth Required
POST /register Register a new user ❌ No
POST /login Login & get JWT token ❌ No
GET /workouts/ Get all workouts βœ… Yes
GET /workouts/{id} Get a workout by ID βœ… Yes
POST /workouts/ Create a new workout βœ… Yes
DELETE /workouts/{id} Delete a workout by ID βœ… Yes
GET /routines/ Get all routines βœ… Yes
POST /routines/ Create a new routine βœ… Yes
DELETE /routines/{id} Delete a routine by ID βœ… Yes

πŸ”§ Installation & Setup

  1. Clone the repository:
    git clone https://github.com/GLRandula/workout-app.git
    cd workout-app

About

FastAPI backend for create, read and delete the workout schedules. Handle for many users authorized with credintials.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages