- first time run
$ yarn && yarn start
or$ npm && npm start
in commnad line. Otherwise just runyarn start
ornpm start
to start the app. - The app is running on a
webpack-dev-server
onlocalhost:3000
- Currently, the
Keys.js
under theconstants/
directory is missing, you will have to create aKeys.js
file and paste theKeys
object containing theFIREBASE
object in order to connect to the firebase.
-
You must have the Firebase CLI installed. If you don't have it install it with npm install -g firebase-tools and then configure it with firebase login.
-
Configure the CLI locally by using firebase use --add and select your project in the list.
-
Install Cloud Functions dependencies locally by running: cd functions; npm install; cd -
-
To be able to send emails with your Gmail account: enable access to Less Secure Apps and Display Unlock Captcha. For accounts with 2-step verification enabled Generate an App Password.
-
Set the gmail.email and gmail.password Google Cloud environment variables to match the email and password of the Gmail account used to send emails (or the app password if your account has 2-step verification enabled). For this use:
firebase functions:config:set gmail.email="myusername@gmail.com" gmail.password="secretpassword"
Two projects are available: prod (goplan-40acb) dev (goplan-3b4b1)
- Choose firebase project: firebase use prod (or dev)
- Add environment config to the project: firebase functions:config:set app.environment="prod" (or dev)
- Repeat steps 1-2 for the dev project
- Run this to deploy: firebase deploy --only functions:uploadReceipt (to deploy all functions: firebase deploy --only functions)