Sample Application from Elm Beyond the Basics.
Run the following setup steps
- Run
npm install
to install the build process dependancies - Run
npm install gulp -g
to install the gulp executable globally - Run
elm package install
to install the elm dependancies
- Create an account on firebase and create a new database
- Add The following temporary rules to your firebase database
{
"rules": {
".read": true,
".write": true
}
}
Orginal values:
{
"rules": {
".read": "auth != null",
".write": "auth != null"
}
}
- Add a file the
config.js
file with your new firebase API keys, found "here" (replace YOURFIREBASEDBHERE, then click Add Firebase to your web app)
https://console.firebase.google.com/project/YOURFIREBASEDBHERE/settings/general/
config.js
should look like so:
'use strict';
var config = {
apiKey: "YOURAPIKEYHERE",
authDomain: "YOURAUTHDOMAINHERE",
databaseURL: "YOURURLHERE",
storageBucket: "YOURSTORAGEBUCKER",
messagingSenderId: "YOURMESSAGINGSENDERID"
};
- Run
gulp
to start the build process