From c87e8c4e8755d9c565ab9e0ce7e57fed2f82fb32 Mon Sep 17 00:00:00 2001 From: Aarsh Shah Date: Mon, 23 May 2022 15:54:51 +0530 Subject: [PATCH] Update README.md --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c226f35..4e5803d 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,15 @@ # Running a Saturn L2 node -1. cd into saturn-l2 +1. cd into saturn-l2. 2. Run `go build -o saturn-l2-svc main/main.go`. This builds a binary called `saturn-l2-svc` in your current directory. -3. You can start the binary by giving it the port number you should run it - For example: +3. You can start the binary by giving it the port to bind to: ``` aarshshah@192 saturn-l2 % ./saturn-l2-svc 1234 Server listening on [::]:1234 ``` -4. It has a http endpoint called `hello` that returns some JSON: -``aarshshah@192 ~ % curl http://127.0.0.1:1234/hello - {"Age":25,"Name":"BajtosTheGreat"}%`` +4. It has an http endpoint called `hello` that returns some JSON: +``` +aarshshah@192 ~ % curl http://127.0.0.1:1234/hello + {"Age":25,"Name":"BajtosTheGreat"} + ```