Commit be8ac637 authored by MigueKun's avatar MigueKun

Update README.md

parent 86a2e9d1
......@@ -79,25 +79,39 @@ We use [Terraform](https://www.terraform.io/intro/getting-started/install.html)
| [GCC Compiler](https://gcc.gnu.org/) | `brew install gcc` | [GCC Compiler Example](https://github.com/poanetwork/blockscout-terraform/blob/33f68e816e36dc2fb055911fa0372531f0e956e7/modules/stack/libexec/init.sh#L70) |
| [GMP](https://gmplib.org/) | `brew install gmp` | [Install GMP Devel](https://github.com/poanetwork/blockscout-terraform/blob/33f68e816e36dc2fb055911fa0372531f0e956e7/modules/stack/libexec/init.sh#L74) |
### Dependencies installation
(Under preparation...)
### Dependencies
1. Install system requirements:
```
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
dpkg -i erlang-solutions_1.0_all.deb
rm erlang-solutions_1.0_all.deb
echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' sudo tee -a /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt-get update
apt-get install -y esl-erlang=1:21.1.1-1 python python3 inotify-tools nodejs automake gcc libgmp3-dev make libtool autoconf unzip elixir=1.8.1-1 build-essential
```
### Build and Run
1. Start the Pirl daemon with rpc settings as service.
1. Clone the repository.
```git clone https://git.pirl.io/community/explorer-blockscout```
2. Go to the explorer subdirectory.
```cd explorer-blockscout```
3. Start the Pirl daemon with rpc settings as service.
```
wget https://git.pirl.io/community/pirl/uploads/f339ecb21997253a80fdbc534715fe0d/pirl-linux-amd64-hulk-1_8_2
chmod +x pirl-linux-amd64-hulk-1_8_2
mv pirl-linux-amd64-hulk-1_8_2 /usr/bin/pirl
cp pirl.service /etc/systemd/system/pirl.service
systemctl daemon-reload
systemctl enable pirl.service
systemctl start pirl.service
```
2. Clone the repository.
```git clone https://git.pirl.io/community/explorer-blockscout```
3. Go to the explorer subdirectory.
```cd explorer-blockscout```
4. Set up default configurations.
<br />Linux: Update the database username and password configuration in `apps/explorer/config/prod.exs`
<br />Mac: Remove the `username` and `password` fields from `apps/explorer/config/prod.exs`
......@@ -112,7 +126,13 @@ We use [Terraform](https://www.terraform.io/intro/getting-started/install.html)
```
6. Create and migrate database.
Set postgres user password as same as point 4.
```
sudo -u postgres psql
\password (set the password and press enter)
\q
```
Create and populate DB.
```
mix ecto.create && mix ecto.migrate
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment