console-cowboy / DNP_DAPPMANAGER

DAppNode package responsible for providing the DAppNode Package Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website dappnode.io Documentation Wiki GIVETH Campaign RIOT DAppNode Twitter Follow

The DNP_DAPPMANAGER handles the DAppNode core DNPs and any installed DNPs. It also performs maintenance checks.

It is an AragonApp whose repo is deployed at this address: 0x0c564ca7b948008fb324268d8baedaeb1bd47bce and whose ENS address is: dappmanager.dnp.dappnode.eth

Getting Started

This repo is a single piece of DAppNode. To install and use DAppNode go to the installation guide.

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You must have git, docker and docker-compose in your environment to run this repo. To verify so, run the following commands.

git --version
docker --version
docker-compose --version

Go to the pre-requisites setup guide if you any command returned an error and need to install a pre-requisite.

Installing

To get started, clone the project locally.

$ git clone https://github.com/dappnode/DNP_DAPPMANAGER.git

To develop locally, cd into the src folder and start the nodejs application

cd build/src
npm i
npm start

The DNP_DAPPMANAGER expects to be in a DAppNode network to connect to its WAMP module, Ethereum node and IPFS node. If you wish to use a different providers for such services you can edit their urls in the build/src/src/params.js file.

Building

After making sure that the nodejs app runs successfully on it own and passes the tests npm test, you can dockerize the package.

docker-compose build
docker-compose up -d
docker-compose logs -f

Distributing

Now, generate a tar.xz image (get the xz library).

$ docker build --rm -f build/Dockerfile -t dappmanager.dnp.dappnode.eth:dev build
$ docker save dappmanager.dnp.dappnode.eth:dev | xz -9 > dappmanager.dnp.dappnode.eth_x.y.z.tar.xz

You can download the latest tar.xz version from here releases.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

References

git

docker

docker-compose


About

DAppNode package responsible for providing the DAppNode Package Manager

License:GNU General Public License v3.0


Languages

Language:TypeScript 99.0%Language:Shell 0.6%Language:Dockerfile 0.4%