Node.js app to manage the office keg. This is my first node app, so go easy on me :)
We have a kegerator in our office but it is not company sponsored, so we have to charge money for each pint to keep it funded. This app was built to keep track of peoples tabs.
The app requires MongoDB, Node JS, and Compass CSS - so the first step is to get all those items running. If you are on OSx, just run the commands I listed below.
- Mongo: https://www.mongodb.org/downloads (OSx: brew install mongodb)
- Compass: http://compass-style.org/install/ (OSx: gem install compass)
- Node JS: https://nodejs.org/download/ (OSx: brew install node)
##Getting the app running
cd ~/dev/theofficekeg
cp env.example .env
vi .env
npm install
node server.js
http://localhost:8081
The frontend uses sass/compass to compile the CSS. Follow these steps to get it running. I've been committing the compiled CSS to GIT, but I really should be ignoring the compiled CSS and running the compilation at deployment time.
Follow these instructions: http://compass-style.org/install/
cd ~/dev/theofficekeg/public/css
compass watch
To compress CSS for prod:
compass compile -e production