Skip to content

Commit

Permalink
Merge pull request #11 from mavotronik/dev
Browse files Browse the repository at this point in the history
Add instructions to run node
  • Loading branch information
YeahNotSewerSide authored Sep 10, 2023
2 parents 1debdaf + 62b3248 commit 1bc2c22
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,61 @@
# Node
# Node
## Installation
There is 2 methods of installation:
- Docker (tested on Ubuntu 22.04)
- From source (tested on Ubuntu 18.04, Debian 12, Termux 0.118.0)

### Docker
1. Update list of packages and install some need packages
```
sudo apt update
sudo apt install -y nano mc git curl
```
2. Install Docker

Actual instructions to [install](https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script) Docker

3. Clone this repo

```
git clone https://github.com/AploCoin/Node -b dev node
```
4. Edit .env file. Replace IP address in the ANNOUNCE_ADDRESS field to your
```
ANNOUNCE_ADDRESS="yourIP:5050"
```
5. Build the docker container
```
docker build -t aplo_node:latest .
```
6. Run container
```
docker run --network host --name aplo_node aplo_node
```

### From source
1. Update list of packages and install some need packages
```
sudo apt update
sudo apt install -y curl git nano build-essential binutils
```
2. Install Rust
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
3. Clone this repo

```
git clone https://github.com/AploCoin/Node -b dev node
```
4. Edit .env file. Replace IP address in the ANNOUNCE_ADDRESS field to your
```
ANNOUNCE_ADDRESS="yourIP:5050"
```
5. Build node
```
cargo build --release
```
6. Run node
```
cargo run --release
```

0 comments on commit 1bc2c22

Please sign in to comment.