  #Installation
### Create source folder (/vaw/www as example)
```bash
$ mkdir /var/www
$ cd /var/www
```

### Make install
```bash
$ sudo apt update
$ sudo apt-get install build-essential -y
```

### Optionally install unzip
```bash
$ sudo apt-get install unzip
$ unzip {archive_name}.zip
```

### Copy .env file
```bash
cp .env.example .env
```

### Edit .env file
```dotenv
BACKEND_URL=http://{ip}:{BACKEND_PORT}/
#BACKEND_URL=http://127.0.0.1:8081/

SOCKET_IO_URL=
FRONTEND_URL=

MYSQL_ROOT_PASSWORD={GENERATE_PASSWORD}
MYSQL_PASSWORD={GENERATE_PASSWORD}
GOLANG_KEY={GENERATE_GOLANG_KEY}
GOLANG_INITIAL_VECTOR={GENERATE_INITIAL_VECTOR}
```

### Build by one command
```bash
make install && make ports && make env && make build
```

### Build by steps
```bash
$ make install
$ make ports
$ make env
$ make build.backend
$ make build.frontend
```


### mysql import
docker-compose exec mysql bash
mysql -u root -p ermac < ermac.sql