Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/narze/firebase-json-server

Firebase + json-server = :sparkles:
https://github.com/narze/firebase-json-server

Last synced: 4 days ago
JSON representation

Firebase + json-server = :sparkles:

Awesome Lists containing this project

README

        

# firebase-json-server

Roll your own [json-server](https://github.com/typicode/json-server) with Google Firebase

## Requirements
- [Sign up Firebase & create a new project](https://firebase.google.com/)

## Instructions
1. Install nodejs with npm (or yarn)
2. Install [firebase-tools CLI](https://github.com/firebase/firebase-tools) `npm install -g firebase-tools` or `yarn global add firebase-tools`
3. Clone & cd into this repo
4. Login to firebase with CLI `firebase login`
5. Create firebase project `firebase projects:create`, or use existing project `firebase use`
6. `cd functions && yarn install`
7. Change `functions/db.json` to suit your needs
8. Start local json-server with `firebase serve --only=hosting,functions`
9. Deploy json-server to firebase cloud hosting with `firebase deploy`
10. Access to url `http://localhost:5000/api/` or `https://yourprojectname.firebaseapp.com/api/`

## Projects
- [typicode/json-server](https://github.com/typicode/json-server)
- [firebase/firebase-tools](https://github.com/firebase/firebase-tools)