This is the website frontend for the coffee control application, which is built for Softwerk AB as a project for Software Engineering I & II at the University of Groningen, 2015. It has a user system and the ability to control the state of the coffee machine using a raspberry pi connected to the back end.
This logic behind the frontend and the communication with the backend is written mainly in AngularJS and the markup is built with Twitter Bootstrap. The author of this part of the application is Joost Ouwerling.
There are two subfolders, app and assets. This folder configuration was suggested by Adnan Kukic.
Here you can find all static image and css files. nothing magically.
The app folder contains all logic. It has one file and three folders. coffee.js is the main bootstrap which initializes the app and loads all dependencies.
Every folder here can be viewed as a small, stand alone application, and are mainly seperate pages of the app. It istherefore easy to find the right code with the right page based on the file structure. Services which are only used at one page are also dropped here.
Code which is shared by multiple components. These can be services, directives or filters.
Here is at this point only the development mock up api defined, which can be activated during development in coffee.js.
Statistics are generated by Google Analytics and are shown using the Embed API. For more information on modifying the viewing of statistics, their development reference and user guides prove to be very helpful. It uses the Google Service Accounts to generate a access token which can be used by every user.
When running this application in production, it might be useful to minimize and put all JS files in one file, to improve load speed.
Various. Unit tests, alert service, api service, other angularities which I do not (yet) know about ;-)