Test a simple Firebase notes application with Chai, Mocha and Targaryen.
- Install Node.js
- Create a project on Firebase and note down the Project ID
- Replace the project id in the
.firebaserc
with your Project ID - Click Add Firebase to your web app and copy your Initialization Code
- Replace the initialization code in the
environment/config.js
with your Initialization Code - Enable Email/Password & Anonymous sign-in providers in Authentication > SIGN-IN METHOD
- If using Travis CI:
- Create an account on Travis CI and activate your repository
- Execute
npm install -g firebase-tools
followed byfirebase login:ci
- Add FIREBASE_TOKEN to Settings > Environment Variables
npm install
npm start
npm test
Replace FIREBASE-PROJECT-ID with your Project ID and execute the following command.
export PROJECT=FIREBASE-PROJECT-ID && npm run deploy
Add [deploy]
to you git commit message.