angular-modular-seed

Angular modular Seed

This is and seed with modular approach, which is created, thing the performance of application and easy development for the developer


Features

  1. Lazy loading of Contoller, factory, service, directive and javascript libraries
  2. Using bower and npm to load front end dependencies
  3. Application configuration file in json (development.json, production.json , staging.json)
  4. CSS and scripts are loaded from json file (Prevent a large index.html)
  5. Folder structure are in terms of Freatures in your application.

Note:

  • This seed include contibtribution from many people from my organization and github, Its not standards seed

Setup the seed

To set up the seed you need to follow the following step;

Open node js and execute following command

Working With seed

Working with seed is very easy Seed has very few core concepts you need to follow Seed has three type of json file development.json staging.json production.json This json files are in folder location here Click Here

When you run

Configuration are taken from development.json

Loading Assets files

In this seed we load script and js from assets.json

If You want to load specific module foe specific route

You route.js will become

Generating dist copy

To generate the dist copy of you app run

Note:- production indicates configuration will be picked from production.json

Throught the seed have followed the style guide of Johnpapa

Integration with backedn

My motive to create this seed was, front end should be created with static json and does not ahve to wai for apis for backend

So i created url.js

When user run

Automatically login api will be called by application where as when user run

automatically all backend url will get chage to static.json

Before that you need to write the factories in following way

Where login indicate the key value in url.js

You can seed the sample of login module i have implemented in below seed


Contributing

Open an issue first to discuss potential changes/additions. If you have questions with the guide, feel free to leave them as issues in the repository. If you find a typo, create a pull request. The idea is to keep the content up to date and use github’s native feature to help tell the story with issues and PR’s, which are all searchable via google. Why? Because odds are if you have a question, someone else does too! You can learn more here at about how to contribute.

By contributing to this repository you are agreeing to make your content available subject to the license of this repository.

Process

License

Use this guide. Attributions are appreciated._

Copyright

Copyright (c) 2014-2015 Tushar Borole

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

comments powered by Disqus
This page was last updated about 2 years ago.