Fitness Trackr is a platform where fitness enthusiasts can share their workouts and discover new routines. Anyone can browse the site and make an account, and users with an account will be able to upload and manage their own activities.
This information is accessible via the Fitness Trackr API.
A live demo of the finished project is available for you to reference.
Write code to meet the following requirements. You can always write new functions and build new components!
- A logged-in user will see a "delete" button next to each activity in the list of activities.
- If the user clicks the delete button for an activity, but they are not authorized to delete that activity, they will see a corresponding error message.
- If the user clicks the delete button for an activity and they are authorized to delete that activity, that activity is deleted.
- After an activity is successfully deleted, the list of activities is automatically updated.
Warning
Please be mindful of the activities that you create and delete! This API is currently not instanced by cohort so everyone will be working with the same set of data, including past and future cohorts. The database is occasionally reset, but please reach out to an instructor or staff member if you notice an issue with this API.
Please submit the link to your public GitHub repository.