- Install the Expo Go app on your phone
- Install python (if not already installed)
- Set up a virtual environment
- Run
python3 -m venv env
to create the environment - Run
source env/bin/activate
to activate it (must be done whenever you open the folder) - Run
deactivate
to close the environment
- Run
- Install node
- If on MacOS, install homebrew first
cd
into themnp-app
folder- Run
npm install
to install all dependencies - Run
npm start
to start Expo server - Follow instructions in terminal to view app
- Activate your virtual environment
cd
into the backend folder- Run
sh install_dependencies.sh
- Run
sh run_flask_server.sh
- Two links will appear in your terminal
- In the
mnp-app/app/(tabs)/Speech.js
file, change the{Insert URL here}
to the second link (don't push it to the remote)
- When the voice recognition feature in the app is used, it will make a call to the backend. Make sure your laptop and phone are on the same Wi-Fi network for this to work.
The Figma for the app can be accessed here
The app's layout is controlled by the file mnp-app/app/_layout.tsx
. This file renders the components in mnp-app/app/(tabs)
as tabs in the app. The mnp-app/app/(tabs)\index.tsx
file is rendered as the main home page. The file mnp-app/app/(tabs)\_layout_.tsx
controls how the tabs appear.
To create a new page in the app, add a file called [FileName].js
(or .tsx) to the mnp-app/app/(tabs)
folder. Then, add a new
Tabs.Screen
component in the mnp-app/app/(tabs)\_layout_.tsx
file. Follow the format of the existing tabs. You can change the icon
as well -- refer to the FontAwesome documentation.
For more information about the tabs, refer to the Expo docs.
Style information is currently kept in the same file as the component it affects. There is currently some duplication in styling code, which should be fixed in future.