https://github.com/typicode/json-server
- install firebase-tools
$ npm install -g firebase-tools
- login firebase
$ firebase login
- npm install
$ cd functions
$ npm install
- deploy function
$ cd ..
$ firebase -P {your firebase project} deploy --only functions