Server for Anota, an application for creating automatic lists.
- Go to the the git
projectfolder npm install firebase-functions@latest firebase-admin@latest --savenpm install -g firebase-tools- Go to the the
functionsfolder - Type:
npm install
- On terminal type:
firebase login - Follow the steps to login on firebase (with your firenase account)
- Go to the project folder.
- Type:
firebase init - Do not overwrite the files.
- Select
FunctionsandDatabase.
- The functions are coded on
functions/index.js - To teste you can type:
firebase serveThis is faster, and run the functions locally, this prevent from erros that can charge$_$ - The terminal will show an URL HTTP that you need to use for testing, example:
http://localhost:5000/anota-backend/us-central1/addList?uid=12345&link=http://nfce... - After testing everything you can deploy by:
firebase deploy. - The terminal will also print an URL HTTP that you need to use for acessing the functions on the Firebase, example:
https://us-central1-anota-backend.cloudfunctions.net/addList?uid=12345&link=http://nfce...