Git Product home page Git Product logo

yeoman-angular-express-example's Introduction

Angular Webapp Scaffolded by Yeoman Build Status

Tour the stack

This might be the stack you are looking for:

  • angularjs
  • twitter-bootstrap
  • nodejs express with socket.io
  • testacular

It deploys on cloudfoundry.

Setup and Development

  • Tests: grunt express-test
  • Run in dev mode: grunt express-server
  • Run in production mode: grunt build && node app

How was this project generated?

I am glad you ask: with yeoman.

Yeoman, the doc is fantastic but it is a beta:

"Expect nothing to work."

Here is what worked today: March 11th 2013 around noon Singapore time.

Note: one can take the project as a seed and get going.

Setting up yeoman:

Scaffolding angular with twitter-bootstrap

  • Make a package.json file: npm init.
  • Add the latest generators for angular and testacular:
    devDependencies: {
        "generator-angular": "*",
        "generator-testacular": "*"
    }

Now continue with the Getting-Started Documentatin of Yeoman:

yo angular --minsafe

Opt out of RequireJS: at the time of this writing that would break testacular. Opt in of everything else. Including Twitter-Bootstrap's SaaS flavor.

Ok ready to test run all this:

grunt server

Will open the browser on port 9000

Now run the testacular tests.

grunt test

Step 2: Scaffold express

Yeoman will serve the files with a naive static setup of nodejs's express. We want express instead. Luckily other people got started in that direction (Thanks https://github.com/blai/grunt-express).

Add to package.json my fork of that project. "grunt-express": "git://github.com/blai/grunt-express.git"

Add grunt by doing something along those lines: https://github.com/blai/grunt-express-example

Step 3: Push to Cloudfoundry

TODO: add a manifest.yml template and a grunt task. For now: vmc push

yeoman-angular-express-example's People

Contributors

hmalphettes avatar

Watchers

Ábner Silva de Oliveira avatar James Cloos 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.