Giter Site home page Giter Site logo

npelkone / ng2-minimal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jhades/ng2-minimal

0.0 2.0 0.0 70 KB

A beginner-friendly playground for getting started with Angular 2, Typescript and SystemJs - includes bundling

JavaScript 62.45% HTML 21.54% TypeScript 16.01%

ng2-minimal's Introduction

ng2-minimal

A minimal Angular 2 seed project. This is the simplest possible setup for getting started with Angular 2 using the SystemJs module loader.

This repo is meant as a starting point for learning purposes only. It aims at being at the sweet spot for giving the beginner a gentle introduction to parts of the Angular 2 ecosystem - a simple example that still already uses the Typescript compiler, SystemJs and the SystemJs builder.

This build is simple but already has a lot of features and tools without being overwhelming, and it allows to get a feel for what the development Ecosystem of the framework looks like right off the bat.

The way that it works is the following:

  • the dependencies bundle is built only once at startup time
  • Once the server is started, the application gets rebuilt everytime you edit a Typescript file
  • The aplication is served in separate HTTP requests for easy debugging and a quick development cycle

This makes for a good first experience in Angular 2: The application starts up fast, and there are only a few network requests because the libraries are bundled.

But still iterative development is available: just hit Ctrl+S and your changes are applied.

Clone it and start using Angular 2 in seconds!

Installation

No global dependencies are needed. After cloning the repo, run the following commands:

npm install
npm start 

Then open a browser at the following url:

http://localhost:8080

And there you have it, a minimal Angular 2 App up and running. You're all set!

Project Starters

ng2-minimal is not a project starter and is meant for learning purposes only, as a playground.

For bootstrapping an app, please use the official angular-cli. If the CLI is still in early stages, these are the most popular starters kits:

Credit

This repo is based on the RC0 demo made by Rob Wormald. Go check it out for other examples (like Webpack 2).

This repo was originally based on the ng2-play seed repo, check it out.

ng2-minimal's People

Contributors

jhades avatar manwithacat avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.