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
appand namespace sub-modules with this, likeapp.authenticationmodule orapp.usersthis referencing to module of users - Main entry point is
index.htmlofappdirectory. There, all styles, scripts and dependencies are injected - Default routing added to main module
appnamedrouter.jswhere you can define routes with templates, controllers and more - Default translation added to main module
appnamedi18n.jswhere you can define language translations and get all file messages fromlocalesdirectory - Inside
stylesdirectory 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_namewithout thecontrollersuffix because it is added tocontrollersdirectory - 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
vendordirectory and then add import style / script inside config-build.js (remember executegulp build) - When you add favicon, images and fonts, put them into
publicfolder and then reference them insideindex.htmlofappdirectory - All test cases using karma for unit testing, and e2e testing using protractor need to be added inside
tests/unitandtests/e2edirectories respectively (remember framework used is jasmine) - You can re-define the name of main module inside
app.jsand 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 installbower 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-testsexecute all unit testing files insidetests/unitdirectorygulp e2e-testsexecute all e2e testing files insidetests/e2edirectory