You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-3Lines changed: 32 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,35 @@
1
1
# Service registry
2
2
3
+
## Starting the service registry
4
+
This section describes how to start the service registry
5
+
6
+
Open visual studio and click the run button at the top.
7
+
8
+
## How to add services
9
+
This sections describes how to add services to the service registry
10
+
11
+
Send a post request to https://{host}:{port}/repository or https://{host}:{port}/miner with a json body consisting of a key-value pair as follows:
12
+
13
+
```
14
+
{
15
+
"Host": "http://my_new_host:1234"
16
+
}
17
+
```
18
+
19
+
## How to remove services
20
+
21
+
Functions exactly the same as adding hosts, except the request must be a delete request with a key-value pair as follows to https://{host}:{port}/repository or https://{host}:{port}/miner:
22
+
23
+
```
24
+
{
25
+
"Host": "http://my_new_host:1234"
26
+
}
27
+
```
28
+
29
+
3
30
## Docker
31
+
This does not fulfill it's intended functionality when all services are running through docker on the same windows machine.
32
+
4
33
This project supports docker runtime environment, for which you will need to download docker from here: https://www.docker.com/products/docker-desktop/.
5
34
6
35
For this project, be aware that express listens on a specfic port (can be found in /Endpoints), which must be the same port that is used in the docker file.
@@ -35,15 +64,15 @@ docker network create -d bridge data
35
64
## Docker Compose
36
65
It is recommended to use this approach to run the application. To run this project using docker-compose you need to follow the steps below:
0 commit comments