An open API service indexing awesome lists of open source software.

https://github.com/renproject/lightnode

A simple node used for interacting with Darknodes
https://github.com/renproject/lightnode

Last synced: 11 months ago
JSON representation

A simple node used for interacting with Darknodes

Awesome Lists containing this project

README

          

# `🚀 lightnode`

![](https://github.com/renproject/lightnode/workflows/go/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/renproject/lightnode/badge.svg?branch=master)](https://coveralls.io/github/renproject/lightnode?branch=master)

A node used for querying Darknodes using JSON-RPC 2.0 interfaces. Featuring query caching (for performance) as well as retrying for failed requests (for reliability).

Built with ❤ by Ren.

# Building a Docker image

```sh
docker build . --build-arg GITHUB_TOKEN={your github token} --tag lightnode
```

# Running a Docker image

Ensure you have a working local `.env` file for neccesary env vars set, then

```sh
docker run --env-file=.env --env DATABASE_URL=/lightnode/cache.sql --network host -v `pwd`/cache.sql:/lightnode/cache.sql lightnode
```