https://github.com/almothafar/play-with-multi-tenant-firebase
Firebase multi-tenant (single back-end for multiple front-ends) starter (NOT READY YET)
https://github.com/almothafar/play-with-multi-tenant-firebase
firebase java playframework
Last synced: about 2 months ago
JSON representation
Firebase multi-tenant (single back-end for multiple front-ends) starter (NOT READY YET)
- Host: GitHub
- URL: https://github.com/almothafar/play-with-multi-tenant-firebase
- Owner: almothafar
- License: other
- Created: 2017-06-20T08:13:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T03:05:28.000Z (about 9 years ago)
- Last Synced: 2025-07-31T19:22:45.793Z (11 months ago)
- Topics: firebase, java, playframework
- Language: Java
- Homepage:
- Size: 1020 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## This is not ready yet, please see this issue: [Firebase multi-tenancy with play framework depends on header value of HTTP request](https://stackoverflow.com/questions/44647753)
### This is your a Play application to test firebase multi-tenant
=================================
This file will be packaged with your application when using `sbt dist` or run `sbt run`.
There are several demonstration files available in this template.
### Controllers
===========
- ApplicationController.java:
Shows how to call firebase with a simple HTTP request : http://localhost:9000/api/testFirebase.
### Components
==========
- Module.java:
Shows how to use Guice to bind all the components needed by your application.
### Filters
=======
- Filters.java:
Creates the list of HTTP filters used by your application.
- ExampleFilter.java
A simple filter that adds a header to every response.
### Actions
=======
- ActionCreator.java:
Where to intercept requests and read headers.
## Configuration
1. Load sample data that provided inside [taxes-data-export.json](https://github.com/almothafar/play-with-multi-tenant-firebase/blob/master/taxes-data-export.json) into your firebase database project
2. Add your firebase configuration inside `conf/firebase` folder, namign the file with exactly your `project_id` that provided from firebase
3. inside `application.conf` provide list of your `WEBSITE_ID`s with the value for its `project_id`.