Skip to content

The API server for submitting fake news topic to Factcheck Lab editorial team. This repo is mirrored from GitLab.

License

Notifications You must be signed in to change notification settings

factchecklab/editorial-api

Repository files navigation

Editorial DB API

This repository host the source code for the Factcheck Lab editorial data. Currently the primary purpose of this API is for submitting fake news to the editorial team and checking for related fact check reports.

Features

  • Submit fake news to editorial team.
  • Find related fact check report with potential misinformation.

To try out the Editorial DB API, head over to GraphQL Playground and start querying!

Developing

Requirements

  • Node.js
  • PostgreSQL
  • ElasticSearch
  • Google Cloud Storage

Getting started

First of all, create .env file which contains all the server settings. Copy from .env.example as an example. Check that all backing services are running beforehand.

$ yarn install
$ yarn migrate
$ yarn dev

If you use Docker, the repository contains a Docker Compose file which help you start the required services for you.

$ docker-compose up -d postgres elasticsearch
$ docker-compose run --rm api yarn install
$ docker-compose run --rm api yarn migrate
$ docker-compose up app

The server listen at port 4000. Browse to http://localhost:4000 for GraphQL Playground and use the same URL for GraphQL API endpoint.

Contributing

We welcome contributions to our projects! You can ask questions or file a bug report by creating an issue on GitLab. To contribute, fork this repository on GitLab and create a merge request.

Getting Help

If you have questions, file an issue in our repository on GitLab, you can also contact us at tech@factchecklab.org.

Copyright & License

Copyright (c) 2020 tech@factchecklab.

The source code is licensed under Affero General Public License Version 3.