Coder Social home page Coder Social logo

nathanwalker / angular2-sample-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angularshowcase/angular2-sample-app

0.0 3.0 1.0 428 KB

Sample application built with Angular 2

License: MIT License

CSS 5.91% HTML 13.01% TypeScript 66.80% JavaScript 14.29%

angular2-sample-app's Introduction

Introduction

Sample application based upon mgechev/ angular2-seed.

Join the chat at https://gitter.im/mgechev/angular2-seed Dependency Status devDependency Status

Note: Angular 2.0 is not production ready yet! This project is perfect for playing around with the latest versions but do not start new projects with it since a lot of new changes are going to be introduced until the framework is officially released.

Features

  • Component styling
  • Custom Directive
  • Router module (implementing child routes*)
  • Http module
  • Form module (using template driven form approach)

How to start

Note that this seed project requires node v0.12.x or higher and npm 3.x.x.

npm install
# dev
npm run serve.dev

Does not rely on any global dependencies.

Directory Structure

.
├── app
│   ├── components
│   │   ├── about
│   │   │   ├── about.html
│   │   │   ├── about.ts
│   │   │   └── about_spec.ts
│   │   └── home
│   │       ├── home.css
│   │       ├── home.html
│   │       ├── home.ts
│   │       └── home_spec.ts
│   ├── services
│   │   ├── name_list.ts
│   │   └── name_list_spec.ts
│   ├── typings
│   ├── app.css
│   ├── app.html
│   ├── app.ts
│   ├── index.html
│   └── init.ts
├── dist
│   ├── dev
│   └── prod
├── tools
│   ├── tasks
│   ├── utils.js
│   └── workflow.config.js
├── tsd_typings
├── gulpfile.js
├── karma.conf.js
├── package.json
├── test-main.js
├── tsconfig.json
└── tsd.json

Configuration

Default application server configuration

var PORT             = 5555;
var LIVE_RELOAD_PORT = 4002;
var APP_BASE         = '/';

Configure at runtime

npm run serve.dev -- --port 8080 --reload-port 4000 --base /my-app/

Now to extend?

If you want to use your custom libraries:

npm install my-library --save
vim gulpfile.js

Add reference to the installed library in PATH.src.lib into ./tools/workflow.config.js.

Running test

# In a single bash window
npm run test

# Debug - In two bash windows
npm run karma      # 1st window
npm run test.dev   # 2nd window

Contributors

mgechev ludohenin NathanWalker tarlepp aboeglin jerryorta-dev
mgechev ludohenin NathanWalker tarlepp aboeglin jerryorta-dev
TuiKiken ryzy ultrasonicsoft mjwwit natarajanmca11 philipooo
TuiKiken ryzy ultrasonicsoft mjwwit natarajanmca11 philipooo
redian robertpenner jgolla dstockhammer
redian robertpenner jgolla dstockhammer

Change Log

You can follow the Angular 2 change log here.

License

MIT

angular2-sample-app's People

Contributors

aboeglin avatar dstockhammer avatar gitter-badger avatar jgolla avatar kayue avatar ludohenin avatar mgechev avatar mjwwit avatar nathanwalker avatar redian avatar robertpenner avatar

Watchers

 avatar  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.