My workout-app is a mobile application built with React Native that aims to help people with their training routines. The app allows users to choose a body part they want to train, select from a list of exercises generated based on the chosen body part, filter exercises by difficulty, add exercises to their favorites, and view complete instructions on how to perform the selected exercise.
To get started with workout-app on your computer, follow these steps:
- Node.js installed on your computer
- Expo Go app installed on your mobile device
git clone https://github.com/bBravee/workout-app.git
cd workout-app
npm install
or
yarn install
Sign up for a free API key on the API Ninjas website (https://api-ninjas.com/), and get your key (https://api-ninjas.com/profile). Once you have your API key, open the screens/ExercisesScreen.js and screens/FavoritesScreen.js files and replace the apiKey const with your API key.
const apiKey = 'YOUR_API_KEY_HERE';
To use workout-app on your mobile device using Expo Go, follow these steps:
npm start
or
yarn start
Scan the QR code displayed in the terminal or in the Expo DevTools using the Expo Go app on your mobile device.
The app will be loaded on your mobile device, and you can now interact with it to choose body parts, select exercises, and view instructions.
workout-app utilizes the following API endpoints provided by https://api.api-ninjas.com to fetch exercise data
- Fetch exercises by muscle: https://api.api-ninjas.com/v1/exercises?muscle={bodyPartName}
- Fetch exercises by name: https://api.api-ninjas.com/v1/exercises?name={exerciseName}
Raising issues and giving feedback about the app are always welcome!