fitnis's Issues
Implement GET request for viewing a user's workout plans
Endpoint: /api/workouts/user/{userId}/plans
Description: Retrieve a list of workout plans associated with a specific user.
Important steps:
- Update Database Schema to add users
- Create association between users and their workout plans
- Create API Endpoint
- Add auth/users to app
- Modify workout plan rendering to use new endpoint
Implement POST request for workout plan creation
Endpoint: /api/workouts/plans/create
Description: Create a new workout plan.
Log Workout
Implement GET request for a user's workout history
Endpoint: /api/workouts/user/{userId}/history
Description: Retrieve historical workout data for a specific user. Similar to myfitnesspal food diary but with workouts.
Implement GET request for a workout plan's details
Endpoint: /api/programs/{programID}
Description: Retrieve details of a specific workout plan.
Implement GET request for an exercise details
Endpoint: /api/workouts/{workoutId}/exercises/{exerciseId}
Description: Retrieve details of a specific exercise within a workout.
Create Program Modal
Currently, the modal is following a workflow of
Make plan details -> Add exercises to each day of the program -> Program created
Users should be given the option to decide whether they want to manually add each exercise and workout like so or if they want to add some of their already existing workouts to the program so it then becomes a "collection" of their workouts
Create dockerfile to create local instance of postgres db
Workouts Tab
Workouts
|--My Routines
|--|--Button to create new routine
|--|--List of Routines
|--Past Workouts
|--|--Diary of Past workouts
API Endpoints needed:
GET - all workout routines associated with user - Need to implement users first
GET - details of each exercise associated with routine
POST - create new workout routine
POST - create set of program exercises associated with new workout routine
Implement POST request for updating personal records
Endpoint: /api/workouts/{userId}/records/update
Description: Update personal records for a specific user.
Make api routes in client dynamic
Modify routes to go from
http://localhost:3000/api
to
${apiUrl}/workouts/all
or whatever for respective endpoint
Define Database Schema
Implement GET request for viewing community workouts
Endpoint: /api/workouts/community/plans
Description: Retrieve a list of top community workout plans.
Possible implementation:
- Gather all workout plans
- Order by rating
- return top 10(?)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.