Giter Site home page Giter Site logo

composableanalytics / systemjs-jspm-webapp-starter Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 16 KB

An empty, pre-configured web app & build system utilizing SystemJS, JSPM, Gulp, TypeScript, Sass, and AngularJS w/ ng-forward shims for Angular-style TypeScript class controllers

JavaScript 96.60% HTML 1.66% TypeScript 1.62% CSS 0.12%
systemjs jspm gulp typescript sass webapp build-system angularjs ng-forward

systemjs-jspm-webapp-starter's Introduction

Getting Started

Perform the following steps to get set up with a bare-bones AngularJS (ng-forward) web app. The build system uses SystemJS, JSPM, and Gulp.

Install Global Prerequisites

  1. cd to the root of your clone of this repository
  2. Install Node.js and NPM
  3. Run $ npm install -g gulp jspm typings http-server

Install Packages

  1. Run $ npm install to acquire Gulp and build system dependencies
  2. Run $ jspm install to acquire webapp and transpilation dependencies
  3. Run $ typings install to acquire TypeScript definitions

Gulp

  1. Run $ gulp prod to create and configure a production JavaScript/HTML/CSS bundle from the project's source TypeScript/HTML/Sass files. You can find this bundled file in static/build/main.js.

Serve

  1. Run http-server. Keep this terminal open.
  2. Browse to localhost:8080 to see your basic Angular app. If the message "2 + 2 = 4" displays correctly, you should be good to go. (Note that the port in the address can change, so use the one that http-server outputs on startup if it is not 8080.)

Developing

Switch to development (unbundled) mode by running $ gulp dev. TypeScript & Sass source files will be transpiled on the fly in-browser by SystemJS, so you can make changes and see them reflected by refreshing your browser. Be sure to re-run $ gulp prod before pushing to any production environments.

systemjs-jspm-webapp-starter's People

Contributors

ryanoshea avatar

Stargazers

 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.