Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

friendsbet/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Angular Base

This project is aiming to provide you a sample architecture to build your angular project using grunt. Build tasks are provided for both dev and production. It will keep your development process close to the production build to help reducing the number of defect occuring after build time.

The file injection is handled by RequireJS where folders contain manifest files.

NodeJS is used to provide you a sample proxy and a local server to access your app.

Also it provides you a localeService already built to deal with browser's locale (PolyglotJS). Just fill in your lang.json files. You can simply implement on top of it a service to refresh the locale based on user selection.

##Dependencies ####For this project to work

####Optional Just to make your life easier, we included those :

##Setup To install all required dependencies run :

$ npm install

If you don't already have grunt installed run :

$ sudo npm install -g grunt-cli

##Bower To be implemented

##Building Our build process uses grunt. To build for development purpose and still have a readable compiled app run :

$ grunt default

To build for production and get a minified app, run :

$ grunt production

##Running We provide a local node app to run your webapp against a proxy. To run it type :

$ node node/app

If you want to specify a backend URL to use you can use it as follow :

$ node node/app --host <host> --port <port>
  • <port> is optional. It's default value will be 8080.

Running webapp will be available at :

  • http://localhost:7000

##Live Edit In order for you app to take your changes into account run : grunt watch

It will watch all changes occuring to your files and re-build your app. e.g : If you modify less files, only the CSS output will be recompiled

What ??? I'm developping JS and HTML app and I have to compile ? This is arguable but it will keep your development closer to the production release. DI issues will appear in development and not while continuous integration process.

##Unit Testing TBD