- Python: Version 3.8 or higher (download it from here).
- Node.js: Version 14.x or higher (download it from here).
- Android Studio.
- MongoDB: Either a local instance or an Atlas account.
- React Native CLI: Follow the setup instructions here.
git clone https://github.com/your-username/VitalTrack.git
cd VitalTrack
cd VitalTrackServer
Run the following command to install all required Python packages:
pip install -r requirements.txt
Copy the example .env
file to configure your environment:
cp example.env .env
Update the .env
file with your MongoDB connection string and other required variables.
Start the server by running:
flask run
Run the following command in your command line:
pip install -U pytest
run pytest
in command line
Run the following command in your command line:
pip install black
After that you specify black filename.py
in the terminal and black automatically formats your code.
If you want to format the whole directory, you can run black ./VitalTrackServer
in the VitalTrack Directory
cd VitalTrackApp
Run the following command to install all required Node.js packages:
npm install
- Open Android Studio and configure your environment.
- Create an emulator using the AVD Manager.
- Start the Metro Bundler:
npx react-native start
- Launch the app on the emulator:
npx react-native run-android
- Enable Developer Options on your Android device:
- Go to Settings > About Phone > Software Information.
- Tap on Build Number seven times to enable Developer Mode.
- Enable USB Debugging:
- Go to Settings > Developer Options and toggle USB Debugging.
- Connect your phone to your PC via USB.
- Start the Metro Bundler:
npx react-native start
- Launch the app on your device:
npx react-native run-android
If you encounter issues during setup, follow these steps:
Ensure that your MongoDB server is running, and your IP address is whitelisted in the MongoDB Atlas dashboard.
If you encounter frontend issues, clear the build cache:
npm start --reset-cache
If the server fails to start, confirm all Python dependencies are correctly installed by re-running:
pip install -r requirements.txt
Ensure your Android Studio installation includes the required SDKs, and your emulator is properly configured. If errors persist, clean the Gradle build by running:
cd android
./gradlew clean