GithubHelp home page GithubHelp logo

odn-publisher's Introduction

odn-publisher

Prerequisites


SSL disabled

Origintrail V6 Beta 1 node installed

Installation


Initial setup:

sudo git clone https://github.com/zeroxbt/odn-publisher.git && cd odn-publisher && sudo npm i

Next, API keys are required and they need to be put in the .env file

cp .env-example .env
nano .env

API Keys:

Google API Key

  1. Log in to your Google account
  2. https://console.developers.google.com/apis/credentials
  3. Click on + Create Credentials and select API Key
  4. Copy the API KEY to the .env file
  5. If Google KG search requests fails with 403 even after API key is created and specified, then it's possible Google KG search is disabled. If this is the case, enable Google KG API search here - https://console.developers.google.com/apis/api/kgsearch.googleapis.com/

Europeana API Key
https://pro.europeana.eu/page/get-api

Digital Public Library of America (DPLA)
Replace <put_your_email_here> by your email address

curl -v -XPOST https://api.dp.la/v2/api_key/<put_your_email_here>

Publishing:

You can run the following command to start publishing datasets right away, but if you want to run it as a background process, skip the following command

npm start

To run the odn-publisher as a background service,

cp odnpublisher.service /etc/systemd/system
systemctl daemon-reload
systemctl start odnpublisher

To view the status of the service,

systemctl status odnpublisher

To enable the service at reboot,

systemctl enable odnpublisher

To view the logs of the publisher,

journalctl -f -u odnpublisher

Searching:

You can enable searching of the the dataset after publishing in .env

odn-publisher's People

Contributors

zeroxbt avatar valcyclovir avatar botnumberseven avatar cosmicloud avatar baddooo14 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.