Simple implementation of Firebase Cloud Functions with Typescript. Coding API with Express framework and using Firestore Database to store data. You can check out the codes on the functions/src/index.ts
file.
git clone https://github.com/ilyas0v/firebase-cloud-functions-typescript.git && cd firebase-cloud-functions-typescript
https://console.firebase.google.com/
Create a Firestore Database inside the project.
You can find your project ID on "Project Settings" tab on Firebase Console.
After upgrading your plan, you can deploy your functions into cloud.
firebase login
cd functions
npm install
npm run deploy
Header
Content-Type: application/json
\
Body
{
"key" : "value"
}
Response
[
{
"id": "Qtjw6SOOzaCN6pvQ0qiG",
"data": {
"key": "value"
}
},
]
You can find the demo API in api.rest
file.