beyondearthappangular's People
beyondearthappangular's Issues
Testing
Testing with Mocha. See https://github.com/camjm/gswg-examples/tree/master/5/01-testing. Do in separate branch.
Grunt deployment to Azure task
Resources
https://docs.angularjs.org/api/ngResource/service/$resource
Credit Card Resource
Custom charge method. Do in the Game Resource for GameTechnologies, GameWorkflow etc
Cancelling Requests
See UnitListController.
Other Projects
Compare this repository to my other grunt source repositories:
Views
Refactor the html views to 'src' as jade. Use appropriate file structure (not flat).
Styling tutorial
Angular Tutorials
Apply the following AngularJS tutorials to the repository:
- Kickstart Your AngularJS Development with Yeoman, Grunt and Bower
- Tutorial / 13 - REST and Custom Services
- $resource
- Creating a CRUD App in Minutes with Angular’s $resource Demo here
- The magic of $resource (or simply a client-side Active Record)
- AngularJS ng-repeat with custom element inside a table is rendering strangely
- AngularJS Form Validation
animation
TypeScript
Create a new TypeScriptBranch that uses TypeScript instead of CoffeeScript to generate the JavaScript. Compile with Babel, using a grunt plugin.
Angular App
Currently our angular app is a global variable, that is referenced in lots of script files (controllers, etc). This means that we can't wrap or js generated from coffeescript in a wrapper function (see the grunt option). Instead of this, use a string passed to angular.module to access the app and wrap the js.
Bower
which grunt plug in should I use?
- main-bower-files (current plugin)
- grunt-bower-task (grunt specific - preferable)
- grunt-bower (I used this previously, see commit history, but wasn't so good)
Angular ui-router module
change to using the ui-router module instead of the ngRoute module. It uses $stateParams instead of $routeParams. Then we can use $stateParams in the route defininition resolvers instead of $route ($routeParams isn't defined at that time, can only be used inside controller).
Browserify
Controller Naming Convention
Tidy up the controller naming convention. Refactor file structure so it is not flat. For example put all the unit controllers in a 'unit' folder. Controllers should follow the following pattern:
- UnitListController
- UnitViewController
- UnitAddController
- UnitEditController
This is to make the controller match the routing url pattern.
use .editorconfig to handle LF etc
Yeoman Generator
Use the Yeoman Angular Generator to add thing like new coffeescript controllers, etc.
Grunt http server
find and use a grunt plugin for a http server (instead of just using 'http-server' from the command line).
Resources
Refactor all services as angular resources. Do not use wrapper, just return the resource object.
Route change events
Investigate configurations for $routeChangeSuccess and $routeChangeError events, so we can handle failures for calls to the back-end globally. Currently we use the content-info directive in each view to handle the $promises, but instead we can handle them in the route configuration.
Because it's the routing modules responsibility to handle, not the controller's.
HATEOAS
Incorporate angular-hateoas so the app can use the API's links. (Remember to do this in a new branch).
Docco
Use for literate programming.
See: http://jashkenas.github.io/docco/
And: https://lostechies.com/derickbailey/2011/12/14/annotated-source-code-as-documentation-with-docco/
Grunt plus Bootstrap tutorials
Follow the following tutorials:
Angular UI Router
Consider using ui-router instead of default ngRoute module.
See differences.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.