A CRUD RESTFUL API USING FIREBASE FIRESTORE
Clone the repo locally. In a terminal, run:
$ git clone https://github.com/FunbiOyede/node-firebase-firestore.git
- Install Node.js
- Run the following commands in a terminal:
$ npm install
$ yarn install
- install firebase cli
- Then run the following commands
$ npm install -g firebase-tools
$ yarn global add firebase-tools
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
Make sure post is set to either x-www-form-urlencoded
or raw json format
- 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