Coder Social home page Coder Social logo

chef-client-mobile's Introduction

chef-client-mobile

In 3 steps, you'll have chef-client-mobile up and running in your browser from scratch.

Developing

2 - Run Stylus/CoffeeScript compilers

> script/stylus-compiler
> script/coffee-compiler

This will compile .styl to .css and .coffee to .js.
File changes will automatically be recompiled.

If you encounter SSL problems installing npm modules then tell npm to default to http by setting up a .npmrc: > echo "registry = http://registry.npmjs.org/" >> ~/.npmrc

3- Run development server

> script/server

In a browser, visit http://localhost:3000/index-dev.html.

Running Tests

Generate specs

> make specs

Run specs (in the browser)

If the server isn't running...

> script/server

Visit [http://localhost:3000/spec-runner/index.html]

Deploying Checklist

1 - Compile Stylus/CoffeeScript

> script/stylus-compiler
> script/coffee-compiler

2 - Rebuild bootstrap.js and bootstrap.css

> make clean; make

3 - Automated Browser Test

> make specs

In a browser, go to http://localhost:3000/spec-runner/.

4 - Manual Browser Test

> script/server

In a browser, go to http://localhost:3000 and spotcheck functionality hasn't regressed.

SublimeText Setup

1 - Install this TextMate bundle to get CoffeeScript syntax highlighting:

[https://github.com/jashkenas/coffee-script-tmbundle]

Extract it in "~/Library/Application\ Support/Sublime\ Text\ 2/Packages"

2 Install the SublimeLinter from package control

This will show CoffeeeScript syntax errors in the editor. More information is available at [https://github.com/lunixbochs/sublimelint].

Note: the coffee command needs to be in your path for the the SublimeLinter to work with CoffeeScript.

Note #2: the jsl command needs to be installed for the SublimeLinter to work with JavaScript. Install using brew install jsl

3 Install the Stylus TextMate bundle

> cp -R node_modules/stylus/editors/Stylus.tmbundle "~/Library/Application\ Support/Sublime\ Text\ 2/Packages"

Development URL Parameters

mock-data

Simulates the service, loads mock data from mock-resources.coffee

Example

http://localhost:3000/index-dev.html?mock-data

chef-client-mobile's People

Contributors

peterwmwong avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

chef-client-mobile's Issues

Setup client project

  • tatotime-mobile mobile app skeleton + cell qunit testing + xoltop build
  • Setup iWebInspector
  • Replace live.js -> LiveReload

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.