NutriTrack provides daily calorie tracking and suggests recommended exercises for various kinds of users
This project uses Expo for development. To run the project, please use the following command:
npx expo run
To test the application in it's development with native features (such as the login/sign up functions.)
Please use npx expo run
instead of other commands like npx start
or expo start
. This ensures that the project runs correctly with all necessary configurations as Firebase's User Authentication only works in a development build/native environment. If you wish to run the command npx expo run
, you will need to set this up by configuring an AVD (Android Virtual Device), which can be done by downloading Android Studio and installing the neccessary SDK and tools. If you do not wish to go through this process, just comment out the login and sign up pages in App.js.
To run your React Native app using npx expo run
on an Android emulator, follow these steps:
- Download and Install: Get Android Studio from the official site and follow the installation instructions for your OS.
- Install SDK and Tools: Ensure you select to install the Android SDK, Android SDK Platform, and Android Virtual Device (AVD) during installation.
-
Open Android Studio: Launch Android Studio on your machine.
-
Configure SDK:
- Go to
File
>Settings
(orAndroid Studio
>Preferences
on macOS). - Navigate to
Appearance & Behavior
>System Settings
>Android SDK
. - Ensure you have Android SDK 34 installed (not 35!), including
Android SDK Platform-Tools
andAndroid SDK Build-Tools
.
- Go to
-
Set Up AVD:
- Go to
Tools
>AVD Manager
. - Click on
Create Virtual Device
. - Choose a device model (e.g., Pixel 4).
- Select a system image (e.g., Android 13.0). Download it if necessary.
- Click
Next
, thenFinish
to create the AVD.
- Go to
Make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
- Expo CLI
- JDK 17 (set system variable and system path)
- Clone the repository
- Navigate to the project directory
- Install dependencies:
npm install
To start the project, run:
npx expo run
or
npx expo start
Take note that you still might have to comment out user authentication related pages when running npx expo start
as there might be errors
This will start the Expo development server and provide you with options to run the app on various platforms (iOS simulator, Android emulator, or web).
To test the login functionality, you can use the following credentials:
- Email: [email protected]
- Password: 123456
Alternatively, you can create a new account entirely.