This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6366fc
commit c87e8c4
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
``` | ||