This README outlines the details of collaborating on this AngularJS 1.x application (like an Ember). A short introduction of this app could easily go here.
- Routing using ui-router
- Models like ORM using angular-restmod
- Authentication (token-based) using satellizer
- Translation (i18n) using angular-translate
- Default main module is
app
and namespace sub-modules with this, likeapp.authentication
module orapp.users
this referencing to module of users - Main entry point is
index.html
ofapp
directory. There, all styles, scripts and dependencies are injected - Default routing added to main module
app
namedrouter.js
where you can define routes with templates, controllers and more - Default translation added to main module
app
namedi18n.js
where you can define language translations and get all file messages fromlocales
directory - Inside
styles
directory you can work with raw css, less or sass if you prefer. Then you have selected how work, delete unused files - Added example of controller named
app.authentication.signin
. This name is related tomodule.controller_name
without thecontroller
suffix because it is added tocontrollers
directory - Added example of model using angular-restmod, named
app.user
. The model is user but this is added to global and main module calledapp
- When you add new dependency manually (downloading file) or using bower, put them into
vendor
directory and then add import style / script inside config-build.js (remember executegulp build
) - When you add favicon, images and fonts, put them into
public
folder and then reference them insideindex.html
ofapp
directory - All test cases using karma for unit testing, and e2e testing using protractor need to be added inside
tests/unit
andtests/e2e
directories respectively (remember framework used is jasmine) - You can re-define the name of main module inside
app.js
and also the naming conventions, project structure, dependencies and more. However we recommend these rules for better approach
You will need the following things properly installed on your computer.
git clone <repository-url>
this repository- change into the new directory
npm install
bower install
gulp
- Visit your app at http://localhost:3000 the port can be changed 3000 is browser-sync default port.
gulp server
- Visit your app at http://localhost:3000.
gulp build
- Check-out the dist folder with the last files and changes. This execute full-build with styles, scripts, templates and more.
- Always use this command when you add new script / style into config-build.js.
gulp unit-tests
execute all unit testing files insidetests/unit
directorygulp e2e-tests
execute all e2e testing files insidetests/e2e
directory