Skip to content

base-apps/angular-base-apps-template

Repository files navigation

Angular Base Apps Template

This is a starter project for web application based on Angular Base Apps, powered by Babel and Brunch. It provides you with a sensible defaults to bootstrap your application on a modern language platform with compile time safety across the entire stack of static resources.

Build Status

Features

  • ES6 by default
  • Reloading of resource on save
  • Modular folder-by-feature architecture
  • Javascript/CSS/HTML minification for production
  • Karma for unit tests
  • ESlint for linting

Requirements

You'll need the following software installed to get started.

Get Started

Clone this repository, where app is the name of your app.

git clone git@github.com:base-apps/angular-base-apps-template.git starter

Change into the directory.

cd starter

Install the dependencies. If you're running Mac OS or Linux, you may need to run sudo npm install instead, depending on how your machine is configured.

npm install

While you're working on your project, run:

npm start

This will compile your front end resource and assemble your Angular app. Now go to localhost:3333 in your browser to see it in action.

To build your app for production, run:

npm run production

To run unit tests with karma:

npm test

Running in Vagrant box

You can add following lines to your index.hmtl to resolve websocket issues.

<script>
  window.brunch = window.brunch || {};
  window.brunch.server = 'guest_ip_address';
</script>