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.
- 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!
- Node.js
- PostgreSQL
- ElasticSearch
- Google Cloud Storage
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.
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.
If you have questions, file an issue in our repository on GitLab, you can also contact us at tech@factchecklab.org.
Copyright (c) 2020 tech@factchecklab.
The source code is licensed under Affero General Public License Version 3.