Giter VIP home page Giter VIP logo

gulp-angular-skeleton's Introduction

Gulp Angular Skeleton โ˜ 

A basic Angular app structure, with Gulp, Bower, and Express.

Dependencies

Node (which includes npm), Bower, and SASS.

Setup/Use

  1. Run npm install
  2. Run bower install
  3. Run the webserver in one terminal tab nodemon app/server.js and open up localhost:3000.
  4. Run gulp watch in another terminal tab to run JS Lint and compile CSS.
  5. To create a build of your app for deployment, run gulp build. This will create a /dist folder containing your app.
  6. You can then test the build using nodemon dist/server.js.

File Structure

The entire app is in app/, which includes a server.js file for the webserver and a public/ folder with the entire front end. Inside of public there's index.html, the root page for a single page app. There's scss/ for the SCSS, which gets compiled into css/main.min.css. bower_components/ also lives here, and houses bower dependencies. js/ houses main.js, the main JavaScript file for the app, and then you can include subfolders for various Angular pieces; included is /controllers. Finally, there's partials for Angular html views.

The Server

This is a very basic Express server. I like to separate front end watchers from the server side, so I chose to have you run the server from outside of the Gulpfile.

The Gulpfile

If you are interested in looking through an annotated version of this gulpfile, check out my gist

In the Future...

Tests, image minification

gulp-angular-skeleton's People

Watchers

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