Building the Ultimate Workout Tracker with React Native & MongoDB
notJust․dev・140 minutes read
The tutorial focuses on building a workout tracker using React Native and IBM Staps for a GraphQL API, with an emphasis on implementing exercise tracking and displaying progress. The tutorial also covers styling components, setting up navigation with Expo Router, and integrating data from MongoDB to manage exercises and new sets efficiently.
Insights
- The tutorial focuses on building a workout tracker utilizing React Native, GraphQL API with IBM Staps, and MongoDB Atlas for data storage.
- The importance of separating rendering logic from styling logic is highlighted, emphasizing the use of Styles sheets in React Native for better organization.
- Expo Router is introduced for navigation in React Native applications, enhancing user experience and enabling deep linking.
- Utilizing the React Query library to manage and query data from the GraphQL API created with IBM Staps in React Native applications ensures efficient data handling and error management.
Get key ideas from YouTube videos. It’s free
Recent questions
How can I build a workout tracker?
The tutorial focuses on creating a workout tracker using various technologies. It covers building an exercise database, logging exercise sets, and displaying progress on graphs. The front end utilizes React Native with Expo SDK 50 and Expo Router for navigation. The back end involves building a GraphQL API using IBM Staps, connecting to multiple data sources like an API for exercise data and a custom MongoDB database hosted on MongoDB Atlas. The project is fully connected with GraphQL using IBM Staps and is split into three parts: user interface, GraphQL API, and workout logger functionalities. Dummy data for exercises is provided in a JSON file in the assets folder, which can be imported and displayed in the app using React Native components and styling.
What technologies are used in the tutorial?
The tutorial utilizes React Native with Expo SDK 50 and Expo Router for the front end. The back end involves building a GraphQL API using IBM Staps, connecting to multiple data sources like an API for exercise data and a custom MongoDB database hosted on MongoDB Atlas. The project is fully connected with GraphQL using IBM Staps. Dummy data for exercises is provided in a JSON file in the assets folder, which can be imported and displayed in the app using React Native components and styling.
How do I set up Expo Router for navigation?
Setting up Expo Router for navigation in React Native applications involves changing the entry point to Expo Router, adding a scheme for deep linking in app.json, installing additional dependencies for web compatibility, modifying project configuration for the web bundler, adding presets for Babel preset Expo in Babel config.js, restarting the server and clearing cache after modifications, creating an app directory in the source folder for screens in Expo Router, defining the home screen as index.js in the app directory, deleting app.js after moving code to index.js, and adjusting relative paths for assets and components after moving code.
What is the importance of using GraphQL in the project?
The project utilizes GraphQL to create a flexible and efficient API for interacting with multiple data sources. By using GraphQL, the tutorial simplifies the process of querying and updating data, allowing for seamless communication between the front end and back end. GraphQL also enables the project to easily adapt to changing requirements and scale as needed. Overall, GraphQL enhances the performance and maintainability of the workout tracker application.
How can I interact with the MongoDB API?
To interact with the MongoDB API, one needs to set up and configure a MongoDB database using MongoDB Atlas. This involves creating a new project, deployment, and database user. Accessing the data API manager in MongoDB Atlas requires going to the organization settings and ensuring the organization name is provided. Enabling IP access list may be necessary for allowing access by IP. After enabling the data API, a URL endpoint will be generated to interact with the MongoDB API. Creating an API key named "staben" is essential for interacting with the API, and testing the API request involves copying and pasting the generated command into a terminal. Setting up queries in the schema generated automatically is crucial for seamless interaction with the MongoDB API.
Related videos
notJust․dev
Let's Build a STOCKS Price Tracker with React Native (step-by-step tutorial)
notJust․dev
Building a Full Stack Workout Tracker with React Native & MongoDB
notJust․dev
Building the Formula 1 App with React Native
notJust․dev
Building the Ultimate Nike App in React Native & Redux
notJust․dev
🔴 Netflix Backend in React Native & AWS Amplify (Tutorial for Beginners)