项目作者: FunbiOyede

项目描述 :
A CRUD RESTFUL API USING FIREBASE FIRESTORE
高级语言: JavaScript
项目地址: git://github.com/FunbiOyede/node-firebase-firestore.git
创建时间: 2019-11-18T11:39:54Z
项目社区:https://github.com/FunbiOyede/node-firebase-firestore

开源协议:

下载


node-firebase-firestore

A CRUD RESTFUL API USING FIREBASE FIRESTORE

1. Clone the repo

Clone the repo locally. In a terminal, run:

  1. $ git clone https://github.com/FunbiOyede/node-firebase-firestore.git

2. Run the application

Node.js Installation

  1. Install Node.js
  2. Run the following commands in a terminal:
  1. $ npm install
  2. $ yarn install

Firebase Installation

  1. install firebase cli
  2. Then run the following commands
  1. $ npm install -g firebase-tools
  2. $ yarn global add firebase-tools

3. Expected Parameters

The API expect the following Parameters:

id of type int

email of type string

phone of type string

last_name of type string

first_name of type string

4. Using Postman

Make sure post is set to either x-www-form-urlencoded or raw json format

5. Endpoints

  • create user (POST): /api/create
  • delete user (DELETE): /api/delete/:id
  • get a user (GET): /api/user/:id
  • update a user (PUT): /api/user/update/:id
  • get all users (GET): /api/user

Links

Building api with firebase