Server to collect DHT views from yggdrasil nodes and store in a data base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
yakamok 90070148d3
Update README.md
6 years ago
..
static Rename static/style.css to api/static/style.css 6 years ago
templates Rename templates/index.html to api/templates/index.html 6 years ago
README.md Update README.md 6 years ago
max-min.py rewritten for use with postgresql 6 years ago
niflheim-api.py Rename yggapi.py to niflheim-api.py 6 years ago

README.md

niflheim-api.py

This api provides a web interface to see some basic stats on the data vserv.py has collected and also provides and easy way to get the data through the api.

Install & Setup

First thing you are going to do is configure niflheim-api.py to use the Postgres databse you setup for vserv.py.

So open niflheim-api.py:

DB_PASSWORD = "password"
DB_USER = "yggindex"
DB_NAME = "yggindex"
DB_HOST = "localhost"

Make sure the above matches what you have in vserv.py.

The API will startup on port 3000 and accept all ipv6 connections if you want to change this edit the last line:

app.run(host='::', port=3000)