jlc467 / swello-api

**WIP** new API for swello.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO server code for swello

  • scrape html instead of txt
  • persist scraped forecasts on graph.cool
  • update swello to use GraphQL API
  • highlight zones with hazards on map

How to use

1. Create .env file in root with

NODE_ENV="production"
SENTRY_DSN="sentry DSN key found under project settings"
GRAPHQL_ENDPOINT="graphql endpoint"

2. Install dependencies

yarn

3. Run

yarn test-watch #start jest in watch mode
yarn test-update #update jest snapshots
yarn build #strip flow types and output to /build/
yarn start #start app

About

**WIP** new API for swello.io


Languages

Language:JavaScript 100.0%