Code Monkey home page Code Monkey logo

amiinmiami's Introduction

Am I in Miami?

Sometimes it's hard to know, because there are 34 municipalities, plus the unincorporated municipal service area (UMSA).

Install

‘Am I In Miami’ (AIIM) is a Node application written in Javascript, based on [Am I In Las Vegas] (http://amiinlasvegas.com/).

  1. On a plain Ubuntu system, install the nodejs and npm packages.

    apt-get install -y nodejs npm

  2. Install the additional Node express module:

    npm install express

Install on a Mac using Terminal

  1. install node.js and npm
  2. npm install express
  3. npm install
  4. npm install -g gulp (May need sudo for this)

Run

To run AIIM:

<code>node server.js</code>

Build assets

In order to build the assets, you need to install gulp (npm install -g gulp).

You are of course free to use the locally installed gulp node module if you prefer. node node_modules/gulp/bin/gulp.js

If you only want to run the SVG compiler and js compile, simply run gulp.

The default task will do a once-off compile and close.

The 'watch' task will monitor any js files for changes and re-run the browserify build automatically if any appropriate files are changed.

You may also use the "npm run-script make" and "npm run-script watch" commands to invoke gulp and gulp watch respectively.

Stylesheets are now auto-generated from source SCSS in the Express server via middleware.

Gotcha

On 3/12/15, "npm run-script watch" and "npm run-script test" failed due to a Browserify glitch.

Changing "watchify": "^2.4.0" in package.json to "watchify": "0.8.1" resolves the error, but potentially causes others. Proceed with caution.

Browser support

  • Evergreen browsers (Chrome, Firefox) - current and one previous version
  • Safari - current and one previous version
  • Internet Explorer 9 and above (IE8 is not supported, but there are hooks for fleshing out backwards compatibility and support should that ever become necessary)
  • Mobile support: yes, but no specific minimum browsers targeted

amiinmiami's People

Contributors

louh avatar migurski avatar phiden avatar preppypiet 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.