npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular-js-seed

v1.0.6

Published

Seed project for angular js application

Downloads

2

Readme

angular-js-seed — ready to start application for Angularjs

This project is based on angular 1.x concept and wrap around usefull utility for angular application development.

The seed contains a sample AngularJS application and is pre-configured to install the Angular framework and a bunch of development and testing tools for instant web development.

Getting Started

You can clone repository angular-js-seed and install dependency.

Prerequisites

We have number of server and build tools preconfigured in application, to use them you need to pre-install below dependency

Clone angular-js-seed

Clone the angular-seed repository using git:

git https://github.com/princesoni1989/angular-js-seed
cd angular-js-seed

Install Dependencies

We have two kinds of dependencies in this project: tools and angular framework code. The tools help us manage and test the application.

bower install

npm install

You should find that you have two new folders in your project.

  • node_modules - contains the npm packages for the tools we need
  • client/bower_components - contains the angular framework files

Run the Application

We have preconfigured the project with a simple development web server. The simplest way to start this server is:

grunt serve

Now browse to the app at http://localhost:9000.This will start server in development mode and enable you do fast development. you can make changes and it will deploy automatically.

You can also use:

npm start 

Pre configured application

This app comes with preconfigured configuration. You can find below listed functionality already imaplemented -

  • login
  • logout
  • signup
  • forgot password
  • change password
  • home screen
  • pop up management(Modal)
  • loader service
  • constants
  • configuration
  • server
  • build management
  • Initial test cases
  • test coverage and configuration

Directory Layout

Testing

There are two kinds of tests in the angular-seed application: Unit tests and End to End tests.

Running Unit Tests

The angular-seed app comes preconfigured with unit tests. These are written in Jasmine, which we run with the Karma Test Runner. We provide a Karma configuration file to run them.

  • Configuration is found at karma.conf.js
  • Test an be dound under client/test

The easiest way to run the unit tests is to use the supplied grunt configuration:

grunt test or grunt test:client

This script will start the Karma test runner to execute the unit tests. Moreover, Karma will sit and watch the source and test files for changes and then re-run the tests whenever any of them change. This is the recommended strategy; if your unit tests are being run every time you save a file then you receive instant feedback on any changes that break the expected code functionality.

We have used karma code coverage tool preconfigured which will give percentage of code coverage.It will generate new folder having all coverage information

/coverage

End to end testing

The angular-js-seed app comes with end-to-end tests, again written in Jasmine. These tests are run with the Protractor End-to-End test runner. It uses native events and has special features for Angular applications.

  • the configuration is found at protractor-conf.js
  • the end-to-end tests are found in /e2e

Protractor simulates interaction with our web app and verifies that the application responds correctly. Therefore, our web server needs to be serving up the application, so that Protractor can interact with it.

Updating Angular

Angular framework library code and tools are acquired through package managers (npm and bower) you can use these tools instead to update the dependencies.

You can update the tool dependencies by running:

npm update

This will find the latest versions that match the version ranges specified in the package.json file.

You can update the Angular dependencies by running:

bower update

This will find the latest versions that match the version ranges specified in the bower.json file.

Serving the Application Files

grunt serve

if you want to create build and move to production -

grunt clean
grunt build
cd dist
npm start

This will minify all the file and will create production ready build.

Continuous Integration

Travis CI

Travis CI is a continuous integration service, which can monitor GitHub for new commits to your repository and execute scripts such as building the app or running tests. The angular-seed project contains a Travis configuration file, .travis.yml, which will cause Travis to run your tests when you push to GitHub.

You will need to enable the integration between Travis and GitHub. See the Travis website for more instruction on how to do this.

Initial structure of this project is based on angular-fullstack generator.

Contact

For more information on AngularJS please check out http://angularjs.org/

git bower npm node protractor jasmine karma travis

LICENSE

angular-js-seed is released under the ISC License Copyright (c) 2016 Prince Soni

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.