Skip to content

aaronprojects/angular2-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular2 Starter

Quick start

Clone/Download the repo then edit app.ts inside /src/app/app.component.ts

# install the dependencies with npm
$ npm install

# start the server
$ npm start

open up http://localhost:8080

Table of Contents

Getting Started

Dependencies

What you need to run this app:

  • node and npm (Use NVM)
  • Ensure you're running Node (v5.x.x+) and NPM (3.x.x+)

Installing

  • npm install to install all dependencies

Running the app

After you have installed all dependencies you can now run the app with:

npm start

It will start a local server using webpack-dev-server which will watch, build (in-memory), and reload for you. The port will be displayed to you as http://localhost:8080.

Developing

Build files

  • single run: npm run build
  • build files and watch: npm run watch

How to include external css files such as bootstrap.css ?

Just install the lib and import the css files in vendor.ts. For example this is how to do it with bootstrap:

npm install bootstrap@4.0.0 --save

And in vendor.ts add the following:

import 'bootstrap/dist/css/bootstrap.css';

About

Webpack Angular 2 Starter with Materialize CSS, ng2-pagination, ng2-translate, font-awesome and some more utils on Board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors