Commit 818ef1e9 authored by RusiraPathum's avatar RusiraPathum

readme changes2

parent d77084b3
# Deployment of informatZen Services
Follwoing figure discussed the architecture of the informatZen platfrom.
The architecture of the zoontec platform is shown in the diagram below.
![Alt text](zoontec-architecture.png?raw=true "informatZen platfrom architecture")
......@@ -14,24 +14,9 @@ There are three main servies;
3. gateway
```
## Configuration
Change `host.docker.local` field in `.env` file to local machines ip. also its possible to add a host entry to `/etc/hosts` file by overriding `host.docker.local` with local machines ip. following is an example of `/etc/hosts` file.
```
10.4.1.104 host.docker.local
```
Give write permission to `/private/var/services/connect/elassandra` directory in the server. following is the way to give the permission,
```
sudo mkdir /private/var/services/connect/elassandra
sudo chmod -R 777 /private
```
## Deploy services
Start services in following order;
Start the services in the sequence shown below.;
```
docker-compose up -d elassandra
......@@ -41,13 +26,6 @@ docker-compose up -d web
```
** After hosting website, it can be reached on `<Ip address of the Vm>:4300`.
## Connect apis
gateway service will start a REST api on `7654` port. For an example if your machines ip is `10.4.1.104` the apis can be access via `10.4.1.104:7654/api/<apiname>`.Following are the available rest api end points and their specifications,
** Open `7654` and `4300` port on VM for public
#### 1. put Vaccine
```
......
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