The Ember-powered kegerator.
This is a web application that collects data from the Danger Brewing Hub. Your kegerator might consist of:
- Flow meters - to monitor beer distribution
- Sensors - to monitor temperature, humidity, etc.
Administer your kegerator in real-time or let everyone know what's on tap.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repository- change into the new directory
npm install && bower install
- Sign up for Firebase - it's free
- You might want to create two projects, for
development
andproduction
.
- You might want to create two projects, for
cd
into this directorycp .env.example .env.dev
cp .env.example .env.production
- if using ember-cli-deploy
- Update each file with
ENV
variablesFIREBASE_API_KEY
: Firebase API KeyFIREBASE_DOMAIN
: Firebase domainFIREBASE_DATABASE
: Firebase database URLFIREBASE_STORAGE
: Firebase storage bucketGA
: Google Analytics property ID
- The resulting file(s) should look like:
FIREBASE_API_KEY=abc123
FIREBASE_DOMAIN=my-app.firebaseapp.com
FIREBASE_DATABASE=https://my-app.firebaseio.com
FIREBASE_STORAGE=my-app.appspot.com
GA=UA-000-12
- Setup an admin user
- Navigate to your Firebase dashboard,
Auth
- Enable email/password authentication.
- Add a new user with whatever email and password you choose.
- Navigate to your Firebase dashboard,
- Add database index
- Navigate to your Firebase dashboard,
Database
- Click the
Rules
tab - Update your rules to look as follows:
{ "rules": { ".read": true, ".write": "auth != null", "beers": { ".indexOn": ["active"] } } }
- Navigate to your Firebase dashboard,
- Integrate with your kegerator - Launch the application:
ember server
- Navigate to
Login
- Log in as your admin user you setup.
- Navigate to
Status
andAdd Hub
.- Now that you have a hub, you can add
Taps
andSensors
.
- Now that you have a hub, you can add
- The Hub IDs, along with tap and sensor IDs, will be used to integrate your kegerator to Firebase.
ember server
- Visit your app at http://localhost:4200.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
-
Heroku
- Set your ENV values, similar to
.env.example
heroku buildpacks:set https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/emberjs.tgz
git push heroku master
- Set your ENV values, similar to
-
ember-cli-deploy
- For an overview, go here
- The lightning strategy is recommended.
- Follow the GitHub Flow
- branch
master
- code
- issue a pull request when ready
- branch