GithubHelp home page GithubHelp logo

worldskills-angular-skeleton's Introduction

WorldSkills Angular App Skeleton

This application skeleton is to be used when creating WS Applications.

It contains a good base for a project and includes many useful components helping you to kickstart your application.

Features

  • Yeoman base
  • Angular 1.4.0
    • Including angular-resource, angular-cookies, angular-sanitize ngAnimate, ngAria, ngCookies, ngMessages, ngResource, ngRoute, ngSanitize
  • WorldSkills Bootstrap and App templates already integrated
  • angular-ui-router to allow nested views
    • example views and controllers (click on the competition navi item)
  • angular-translate internationalization support integrated
    • includes angular-translate-loader-url, angular-translate-static-files and angular-translate-storage-local to allow you to load static JSON files for UI element translations and store current translation in local storage (cookie fallback)
  • jquery
  • angular ui-bootstrap
    • Note If you wan't to customize your templates, remove '-tpls' from app/angular-bootstrap/bower.json under 'main'. The templates can be found from the templates folder under app.
  • select2 is not included automatically, it's replaced by ui-select, see angular-ui project for a lot of useful extras

Starting a new project

# Clone a shallow copy of the repository (no history)
$ git clone --depth 1 [email protected]:worldskills/WorldSkills-Angular-Skeleton.git my_application
$ cd my_application

# remove existing git data
$ rm -rf .git

# initialize git for a new project
$ git init

$ npm install
# see bower.json and update version numbers (latest stable for angular libs)
$ bower update

# start the project
$ grunt serve

# to build for distribution
$ grunt build

It is recommended also to rename your application, at the moment it is called 'worldSkillsApp'

angular.module('worldSkillsApp')

It is safe to use global search & replace to rename. There should be 18 references accross the project.

Routing your application

Routing is done with angular-ui-router Routing configuration can be found from app.js

Yeoman

See yeoman instructions on how to create new controllers, views, directives etc.

Yeoman on github

Testing

Karma unit tests Test files under /test/spec

$ grunt test

Protractor E2E testing Test files under /test/protractor

# Start the standalone selenium server
$ ./node_modules/selenium-standalone/bin/start-selenium

# Run tests
$ protractor protractor.conf

Extras

Angular-UI project has many other useful extras that are worth looking into depending on the needs of your project

worldskills-angular-skeleton's People

Contributors

fabian avatar gbervik avatar joni-aaltonen avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

koffitony

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.