Skip to content

l7960261/serverless-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Serverless RESTful Web APIs with Cloud Functions, Firestore, Express and TypeScript

This is a simple API that saves contact information of people.

Requirements

NodeJS

You will need a Firebase project and firebase tools cli

npm install -g firebase-tools

Getting Started

You can follow the guide on Medium or clone this repository.

Use packages firebase-functions-helper

Clone this repository

git clone https://github.com/l7960261/serverless-rest-api.git .

You need to change the firebase project name in .firebaserc file.

After that, you can log in to firebase in the terminal

firebase login

Deploy to firebase

For the first time, you have deploy the hosting and functions together

firebase deploy

After that, you just need to deploy functions only

firebase deploy --only functions

If you cannot do it, please "".firebaserc" has to be deleted and "firebase init" need to be run again." - Thanks to techboycr.

About

Rest api for serverless(firebase)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors