https://github.com/gregonnet/angular-cups
A demo app to get startet with AngularJS. It allows users (aka cuppers) to collect bonus points for each drunken cup of coffee.
https://github.com/gregonnet/angular-cups
Last synced: 11 months ago
JSON representation
A demo app to get startet with AngularJS. It allows users (aka cuppers) to collect bonus points for each drunken cup of coffee.
- Host: GitHub
- URL: https://github.com/gregonnet/angular-cups
- Owner: GregOnNet
- Created: 2014-11-02T12:48:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-04T14:18:49.000Z (over 10 years ago)
- Last Synced: 2025-03-17T03:43:09.034Z (about 1 year ago)
- Language: JavaScript
- Size: 508 KB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-cups
A demo app to get started with AngularJS. It allows users (aka cuppers) to collect bonus points for each drunken cup of coffee.
## Getting started
Run the following commands from the angular-cups root directory to install all needed dependencies
1. `bower install`
2. `cd src/server && npm install`
## Start the demo
Run `server.js` to start the web server @ [http://localhost:8080](http://localhost:8080).
1. `node src/server/server.js`
## Documentation
### Cups-API
get All '/api/cuppers'
get ByMatriculationNumber '/api/cupper/:matriculationNumber'
post create cupper '/api/cupper'
put drinking a cup ‘/api/cupper/drinksACup'
put getting a free cup '/api/cupper/getsAFreeCup’
### Calling the API with AngularJS
cupper.core -> ngRoute
cupper.constants -> snackbar
cupper -> $http, snackbar
- create(cupper)
- getBy(matriculationNumber)
- getAll()
- drinksACup(cupper)
- getsAFreeCup(cupper)
## License
[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)