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
To connect to MongoDB for this project, follow these steps:
Ensure you have Python installed. Then, install the project dependencies using the requirements.txt
file:
pip install -r requirements.txt
- Copy the
example.env
file to.env
:
cp example.env .env
- Follow instructions in the env file
- Add your IP address to mongo dashboard
Ensure you have the necessary dependencies installed for the React Native app. If you haven't already installed them, run the following command in your terminal:
npm install
- Install Android Studio if you haven't already: Download Android Studio
- Set up your Android development environment as per the requirements of Android Studio.
- Create and configure an emulator from Android Studio through the Virtual Device Configuration (using AVD Manager).
- Start the Metro Bundler Run the following command to start the Metro Bundler from the VitalTrackApp directory:
npx react-native start
- Run the Android App: After the Metro Bundler is running, open another terminal and run the following command to launch the Android app on your device or emulator:
npx react-native run-android