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.
- 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
You'll need the following software installed to get started.
- Node.js: Use the installer for your OS.
- Git: Use the installer for your OS.
- Windows users can also try Git for Windows.
Clone this repository, where app is the name of your app.
git clone git@github.com:base-apps/angular-base-apps-template.git starterChange into the directory.
cd starterInstall 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 installWhile you're working on your project, run:
npm startThis 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 productionTo run unit tests with karma:
npm testYou can add following lines to your index.hmtl to resolve websocket issues.
<script>
window.brunch = window.brunch || {};
window.brunch.server = 'guest_ip_address';
</script>