Giter VIP home page Giter VIP logo

krakenjs-angular2's Introduction

Krakenjs-angular2

A kraken-js example application using angular2.

This application adds the Angular2 features only at the client side. For angular2 server side rendering (universal angular2), please check out other examples.

Features

  • kraken-js at the server side to serve data (mostly serves Ajax requests from client).
  • Clear separation of server and client code base
  • Illustrates Angular2 Services, using Github APIs and In-memory database (Service side) services
  • Illustrates Angular2 Routing.
  • Examples of Angular2 user input, forms and two-way binding.
  • Uses webpack instead of the systemjs (angular2 recommended) as the module loader.
  • SASS stylesheet extension and webpack sass loader integration.
  • Webpack dev middleware configurations for JiT compilations and HMR (Hot Module Reload).

Pre-requisites

  • Node version should be v6+
  • NPM version should be 3+

Usage

    > git clone https://github.com/subeeshcbabu/krakenjs-angular2.git
    > cd krakenjs-angular2
    > npm i
    > npm run typings install (If typings are not installed by default)
    > npm start:dev
    (For environments other than development)
    > npm start (This executes, npm run build && node server. tsc && webpack are executed as part of npm run build)

Application can be accessible at http://localhost:8000

Project structure

Server (kraken-js app)

  • /config/ - Application and middleware configuration
  • /controllers/ - Application routes
  • /models/ - Controller models
  • /inmemorydb/ - In-Memory DB configurations.
  • /test/ - Unit and functional test cases
  • /index.js - Application entry point
  • /server.js - Server file to start the application

Client (Angular2 app)

  • /client/ - Client side code base directory
  • /client/app - Angular2 app code
  • /web/index.html - Angular2 client app entry point
  • /bundle/ - Directory for generated resources (js, css etc) for environments other than development.

Webpack

  • /webpack.config.js/ - Webpack module loaded config file.
  • /webpack-util/ - Webpack Utilities including dev config, webpack-dev-middleware and webpack-hot-middleware configurations.

TypeScript

  • /tsconfig.json/ - TypeScript config file. Defines how the TypeScript compiler generates JavaScript from the project's files.
  • /typings.json/ - provides additional definition files for libraries that the TypeScript compiler doesn't natively recognize.
  • /typings/ - Generated typings definition files by running typings install

krakenjs-angular2's People

Contributors

subeeshcbabu avatar

Watchers

James Cloos avatar Maninder Singh 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.