/url-resolver

Automatically resolves the given URL into useful data

Primary LanguageJavaScriptMIT LicenseMIT

Cofacts URL Resolver

Build Status Coverage Status

A GraphQL service that scraps the specified URL and returns scrapped result and summary extracted by [Readability.js]

Usage

First, create an .env file from .env.sample.

Run url resolver from built docker images

$ docker pull johnsonliang/cofacts-url-resolver
$ docker run --rm --env-file .env -p 4000:4000 johnsonliang/cofacts-url-resolver

Visit http://localhost:4000, you will be given a GraphQL Playground. Consult the schema on the right for reference and usage.

Development

First, create an .env file from .env.sample. Fill in your env.

Install development dependencies

# After git clone
$ cd url-resolver
$ npm install

Start dev server

$ npm start