GithubHelp home page GithubHelp logo

teng2015 / seed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from epiphanymachine/seed

0.0 2.0 0.0 4.14 MB

A seed project that runs on a node, compiles coffee-script and stylus, and includes angular, bootstrap, d3, express, grunt, and karma.

CoffeeScript 12.40% CSS 37.43% HTML 13.23% JavaScript 32.46% Batchfile 1.65% Shell 1.36% Ruby 1.47%

seed's Introduction

Summary

I created this project because I wanted to use Angular with Coffee-Script and Bootstrap and I could not find a good seed project. I structured the directory in such a way that all files requiring compiling are stored in /src. Grunt is included to automate a lot of the tasks such as compiling. I also included an Express server that servers the static files from /app on http://localhost:4000.

This project combines into a prebuilt package:

  • Angular - MVW - lets you write client-side web applications as if you had a smarter browser.
  • Bootstrap - Sleek, intuitive, and powerful front-end framework for faster and easier web development.
  • Coffee-Script - a little language that compiles into JavaScript.
  • D3 - a JavaScript library for manipulating documents based on data.
  • Express - a minimal and flexible node.js web application framework.
  • Grunt - The JavaScript Task Runner
  • Karma - Spectacular Test Runner for JavaScript
  • Node - a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.
  • Stylus - Expressive, dynamic, robust CSS

Quick Start

This will compile all required files to view the basic app page (from the angular seed project) and start a web server to view the app. If you run into problems visit the section about globally required node packages.

  1. git clone https://github.com/EpiphanyMachine/seed.git
  2. install global node dependencies npm install -g <package> for each: grunt-cli coffee-script karma stylus
  3. cd seed
  4. npm install - this will install all local dependencies as listed package.json file
  5. grunt - this will run the default grunt task (compile, start server, watch for changes)
  6. Navigate to http://localhost:4000 and if using livereload activate the extension

DO NOT EDIT ANY .JS or .CSS FILES!

These files should be written in Coffee-Script or Stylus.

All coffee and stylus files are stored in the /src folder. Grunt will compile these for you!

Included Libraries and Frameworks

Client

All packages have been minified, bootstrap is in .css not .less format.

Node

Included Local Packages

To install the local packages run npm install in seed directory after cloning.

Required Global Node Packages (not included)

These can be installed globally using:

npm install -g [package]

How to auto compile live reload changes

See the browser extension how-to here Shortcuts Chrome Firefox

From the /seed directory run grunt this starts the default task (compile, start server, watch for changes)

Karma Overview

Karma can run unit and end-to-end tests. Please check out the information available on their site.

App code testing is done with Karma's unit tests. You will find multiple files in the testing directory related Angular here: seed/test/unit/*.

End-to-end (e2e) testing can also be done by Karma to test front end interactions with your application. You will find this testing file located in seed/test/e2e/scenarios.js

Both of these tests can be run automatically using grunt, see the section below for more information.

How to run karma tests

From the /seed directory run grunt test this starts the test task (compile, start test server, run karma once)

The included web servers

These are automatically started by grunt when needed, you do not need to manually run either of these servers.

The seed/scripts/web-server.js serves the seed directory which includes files required for testing. It can be accessed from http://localhost:8000.

The included express server seed/server.js only servers the seed/app which can be used to serve the application. It can be access from http://localhost:4000.

seed's People

Contributors

epiphanymachine avatar

Watchers

 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.