While the app uses Firebase's Twitter Authentication to work, it's not necessary (nor is the app setup) for the app to post real tweets on the Twitter account that you connect to complete the test. While you use the app and create/update threads, these will be saved in Firestore and anything you might need to check behaviours in the app you can get by tweaking the threads' document data or the user's document data.
Make sure you're using Node 16 and Python 2.7 while installing packages, e.g npm i
.
In the files .firebaserc
and src/firebase.js
.
Install gcloud
, then authenticate yourself with gcloud auth login
and set your default project with your Firebase project ID.
npm install -g firebase-tools
And then setup the Firebase project with firebase init
.
npm install
npm run serve
npm run build && firebase deploy
Most of the times, you want to deploy with the firebase deploy --only hosting
option.
firebase emulators:start --only firestore
FIRESTORE_EMULATOR_HOST=localhost:8082 npm run test:unit