update readme according to new Dockerfile
This commit is contained in:
parent
2ed811fd73
commit
7c3cfe4aa0
14
README.md
14
README.md
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue