https://github.com/hidayatarg/firebase-todo-app
https://github.com/hidayatarg/firebase-todo-app
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hidayatarg/firebase-todo-app
- Owner: hidayatarg
- Created: 2020-05-24T16:49:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T12:27:00.000Z (over 2 years ago)
- Last Synced: 2025-01-12T07:13:51.659Z (4 months ago)
- Language: JavaScript
- Size: 228 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## How to set up the Firebase Functions
```npm install -g firebase-tools```Firebase init to configure the firebase functions in your local environment `firebase init`
Select the following options when initialising the firebase function in the local environment:- Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices => Functions: - - - - Configure and deploy Cloud Functions
- First, let’s associate this project directory with a Firebase project …. => Use an existing project
- Select a default Firebase project for this directory => application_name
- What language would you like to use to write Cloud Functions? => JavaScript
- Do you want to use ESLint to catch probable bugs and enforce style? => N
- Do you want to install dependencies with npm now? (Y/n) => Y> Now open the index.js under functions directory
Deploy the code to firebase functions using the following command:`firebase deploy` to deploy only function `firebase deploy --only functions`
> Go to the Project Console > Functions and there you will find the URL of the API.
## Install ExpressJs
`npm i express --save` and deploy to the firebase and go to the `https://....net/api/todos`You can also run the application locally using `firebase serve` command instead of deploying it every time.