Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

sammcj/ask-izzy

 
 

Repository files navigation

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 git@github.com: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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.3%
  • Gherkin 7.3%
  • CSS 5.4%
  • Shell 1.7%
  • Makefile 0.3%