update readme according to new Dockerfile

This commit is contained in:
Adrien Marquès 2020-03-09 19:01:48 +01:00
parent 2ed811fd73
commit 7c3cfe4aa0
1 changed files with 10 additions and 4 deletions

View File

@ -6,13 +6,19 @@
go get -u git.xdrm.io/go/tiny-url-ex go get -u git.xdrm.io/go/tiny-url-ex
``` ```
### 2. launch the server ### 2. launch in docker
``` Build the image.
$ go run . ```bash
$ docker build -t tiny-url .
``` ```
Now you can play with it with any regular REST API client at `127.0.0.1:4242`. Then you can run the container with :
```bash
$ docker run -p 127.0.0.1:8888:4242 tiny-url
```
You can now play with it with any regular REST API client at `127.0.0.1:8888`.
##### 1. Get an authentication token ##### 1. Get an authentication token