Giter Site home page Giter Site logo

ask-izzy's Introduction

Ask Izzy

Dependencies

If you're working on this codebase, some understanding of the following will help:

  • Node/npm
  • webpack
  • React
  • jsx (inline templating)
  • babel (es6 transpiler)
  • flow typesystem
  • mocha (unit testing)
  • yadda (BDD testing)

Getting the code

git clone [email protected]:ask-izzy/ask-izzy.git
cd ask-izzy
npm install
bower install

Running the dev server

You will need API keys for ISS and Google.

ISS_URL=... GOOGLE_API_KEY=... ./script/dev-server

Forklift

If you're using forklift then you can add a config file ~/.config/forklift/ask-izzy.yaml:

environment:
    ISS_URL: ...
    # ISS_URL: http://localhost:5000
    GOOGLE_API_KEY: ...

And run:

forklift ./script/dev-server

There's also a mock ISS server available as ./script/mock-iss. This will start a server on localhost:5000.

Hacking

Link up the git hooks:

ln -s ../.githooks .git/hooks

Add the git merge strategies to .git/config:

[include]
    path = ../.gitmerge/strategies

Run the linters:

./script/typecheck

Running the tests:

./script/test

Pass SELENIUM_BROWSER=... to choose a browser to test with. Format is browser[:version[:platform]]. You can pass SELENIUM_REMOTE_URL to connect to Selenium Grid.

You can test on Sauce Labs using:

SELENIUM_REMOTE_URL=ondemand.saucelabs.com:80/wd/hub \
    SAUCE_USERNAME=ask_izzy \
    SAUCE_ACCESS_KEY=... \
    ./script/test

You can pass BROWSER_LOGS=yes to dump logs from the browser. Be aware not all browsers support this.

Attribution

Bits of the repo setup were based on https://github.com/gpbl/isomorphic500 @ 413c6533ae23 under the MIT licence

ask-izzy's People

Contributors

danielheath avatar danni avatar isaacwilliams avatar jscn avatar kane-c avatar pfctdayelise avatar reducetoflow avatar robynk avatar sebilimbu 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.