A diary app built for your emotions. Available only for Android.
Built with React Native, Firebase and Google Cloud.
Emotion Identification powered by torchMoji, a pyTorch implementation of the DeepMoji model developed by Bjarke Felbo, Alan Mislove, Anders Søgaard, Iyad Rahwan and Sune Lehmann. Check out their paper and demo. A fork of torchMoji, adapted for use in Google Cloud Functions, was used for this project. Check it out here.
Testing implemented with Cavy.
Orbital 2020 project by Kim Tae Kwon and Kim Sangwoo
The following are links to Milestone 3 documents:
README | Poster | Video |
---|---|---|
Google Docs | Image | Youtube |
- Clone the repo.
- Rename
firebase/funcions/example.apiURL.json
toapiURL.json
. - Set up API for emotion analysis over at torchMoji-cloudfunction and copy the endpoint URL into
apiURL.json
. - Rename the file
config/Firebase/example.firebaseConfig.js
tofirebaseConfig.js
and replace with own keys. - Follow instructions in firebase to set up firebase cloud functions.
- Run
npm start
then connect using Expo app.
- Create a user with credentials
cavy@example.com
andpassword
. Make a sample post under that account, with the contentI am happy. I am also angry.
. - Change
global.isTestingEnvironment
inCustomRootComponent.js
totrue
. - Clear the app data of the Android Expo client. (This is optional, but often trying to work around this will cause crashes and errors.)
- Run
npm start
and connect a device using the Expo app. If any tests fail, they will show up as yellowboxes on the Expo client. An object representing the full report of the tests will be printed to the console after the tests. - Before restarting the app, remember to change the global variable
global.isTestingEnvironment
back to false.
Note: The timeouts within the tests are hardcoded, based on the performance of my own test device (Galaxy S6, a high-end device from 2015) and my network speeds. If you experience cavy attempting to run tests before the elements/UI have appeared, you might have to increase these timeouts in specs/specs.js
.
Login starter kit from expo-community/expo-firebase-starter