Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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:
- Host: GitHub
- URL: https://github.com/narze/firebase-json-server
- Owner: narze
- Created: 2017-09-27T13:00:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T20:30:44.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T05:39:14.864Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 577 KB
- Stars: 19
- Watchers: 3
- Forks: 12
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
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)