This is not ready yet, please see this issue: Firebase multi-tenancy with play framework depends on header value of HTTP request
=================================
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.
===========
-
ApplicationController.java:
Shows how to call firebase with a simple HTTP request : http://localhost:9000/api/testFirebase.
==========
-
Module.java:
Shows how to use Guice to bind all the components needed by your application.
=======
-
Filters.java:
Creates the list of HTTP filters used by your application.
-
ExampleFilter.java
A simple filter that adds a header to every response.
=======
-
ActionCreator.java:
Where to intercept requests and read headers.
- Load sample data that provided inside taxes-data-export.json into your firebase database project
- Add your firebase configuration inside
conf/firebase
folder, namign the file with exactly yourproject_id
that provided from firebase - inside
application.conf
provide list of yourWEBSITE_ID
s with the value for itsproject_id
.