FloTask is a smart app that syncs your work with your body and mind! Connect your wearable device and calendar to get personalized and engaging suggestions for the best tasks to do based on your focus, energy, and mood.
- If you have any errors in tsconfig.json, you may need to yarn install the missing dev dependencies.
Ex:
yarn add --dev @types/graceful-fs
-
Clone the Repository
git clone https://github.com/capture120/FloTask.git cd FloTask -
Install Dependencies
cd client yarn global add expo-cli yarn install- if expo-cli is not recognized you may need to add expo-cli to path with
export PATH="$(yarn global bin):$PATH" # OR npm install -g eas-cli
- npx expo start --tunnel
- Open App
- Web: Press s to switch to GO build. Press 'w' in terminal to open app in browser
- Android, IOS: must build for functionality
*** Note: After building and pushing to expo cloud, you do not have to build again unless you have new dependencies. If you team already has a functional build on Expo cloud, skip to step 3.
-
Create client build Build Locally If Windows:
- Install WSL2
- Add ANDROID_NDK_HOME=C:\Users[Your User]\AppData\Local\Android\Sdk\platform-tools in your path environmental variable *** Must be set in WSL, not in Windows ***
- Add JAVA_HOME environmental variable in PATH for WSL.
- run npx expo install --fix
examples: Run
sudo vim ~/.bashrcand add the following to the bottom of your file. Replace [your user] with your own username:
export JAVA_HOME="/mnt/c/Program Files/Java/jdk-11.0.14" export PATH=$PATH:$JAVA_HOME/bin export ANDROID_NDK_HOME="/mnt/c/Users/[username]/AppData/Local/Android/Sdk/platform-tools" export PATH=$PATH:$ANDROID_NDK_HOMEeas build --local
Build and Push to Cloud
cd client eas login *** login with created expo account eas build:configure # ios eas build -p ios --profile development # android eas build --platform android --profile development
-
Download the build and drag into simulator You can install an android simulator, or with mac use xcode. Alternatively you can skip to step 3 and use the expo client to run the app from the cloud.
-
Start the client
cd client npx expo start --dev-client- You can then open the app in the Expo app in the simulator.
- This is useful for experimenting with other builds made by you or your team from Expo Cloud