Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.65 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.65 KB

Docker-based DAPNET node setup

This version is currently in development, especially the new frontend is not fully functional right now.

To run the "old" setup using web as frontend, checkout this commit

Requirements

  • Docker
  • Docker Compose

Startup Procedure

  1. Make sure you cloned all submodules (see here for instructions)
  2. Copy config/config.env.example into config/config.env and enter your node settings
  3. Run
docker-compose up
  1. If all 5 services started, rabbitmq will repeatedly emit errors. To fix them, add your node to CouchDB. Login credentials are set in the config.env file from step two. Navigate to this page and replace the values in the following template, then paste it into the 'New document' form:
{
  "_id": "<NODE_NAME>",
  "auth_key": "<NODE_AUTHKEY>"
}
  1. After that, ask someone else who runs a node to add your node so replication can begin.

Development

Frontend

Set it up manually and use http://localhost:888 as api server as described in the README inside the frontend folder.

Api service

Its easiest to just use the api container itself using VSCode's Attach to Container feature. The files are in /app/ and hot reloading works (from outside the container too), so you don't have to restart the conatiner to apply changes.