An app with a Go/Appengine backend and Angular Material frontend.
- Go Appengine SDK
- typescript: npm install -g typescript
For deployment only:
- ng-annotate: npm install -g ng-annotate
- uglify: npm install -g uglify
goapp
is part of the Go AppEngine SDK. tsc
is the typescript compiler.
rm -rf deploy/
goapp serve .
tsc -w # Continuously recompile typescript files.
# View at http://localhost:8080
- Update recipes and featured list
- Increment version in
app.yaml
make
- Do a quick verification of contents of deploy with
goapp serve deploy/
- Deploy to appengine using
goapp deploy deploy/
- Switch serving version at console.cloud.google.com
- Load http://nebree8.com and check list of excluded recipes in the Chrome console
- Configure ingredients on frontend and backend
- Run backend with
--frontend=http://nebree8.com
(not default) and--check_ingredients
(the default) to check consistency
Implemented in /nebree8.go, provides a straightforward CRUD api rooted at /api/. A mapping from URL to Go function is in the "init" function.
Implemented in /static, largely follows the layout of the Angular Seed app.
- app.html: sources CSS, JS, and has an ng-view and ng-app
- app.css: app-wide CSS (most of the styling is from Angular material, so not much here)
- app.js: configures the nebree8App app.
- random-drinks.js: pure javascript implementation of generating random drinks.
- drink-list/*: template and controller for the list of drinks
- drink-detail/*: template and controllers for the page showing the details of a drink.