Nomad API provides a RESTful interface for developers to query social contents from Nomad, a peer-to-peer, ownerless social network built on top of Handshake and Footnote.
nomad-api
requires Node.js v11.14 or higher
git clone https://github.com/kyokan/nomad-api.git
cd nomad-api
npm install
nomad-api
uses ./config.json
as base configuration for Footnote. You can find the sample config at ./config.sample.json
.
Copy default configuration
cp ./config.sample.json ./config.json
If you are using a hosted Handshake RPC Host, you can skip this step.
Run HSD locally
npm install -g hsd
hsd --index-tx
Please refer to hsd for more detail
Running in production
SERVICE_KEY
enables the /services
endpoints for privileged remote access.
SERVICE_KEY=secret-key npm start
Running in development
npm run dev
// navigate to http://localhost:8082/dev for quick API samples