Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 authored May 23, 2022
1 parent f6366fc commit c87e8c4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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"}
```

0 comments on commit c87e8c4

Please sign in to comment.