|
|
%!s(int64=9) %!d(string=hai) anos | |
|---|---|---|
| public | %!s(int64=9) %!d(string=hai) anos | |
| .editorconfig | %!s(int64=9) %!d(string=hai) anos | |
| .eslintrc.js | %!s(int64=9) %!d(string=hai) anos | |
| .gitignore | %!s(int64=9) %!d(string=hai) anos | |
| LICENSE | %!s(int64=9) %!d(string=hai) anos | |
| README.md | %!s(int64=9) %!d(string=hai) anos | |
| comments.json | %!s(int64=9) %!d(string=hai) anos | |
| package.json | %!s(int64=9) %!d(string=hai) anos | |
| server.go | %!s(int64=9) %!d(string=hai) anos |
This is the React comment box example from the React tutorial.
go run server.go
And visit http://vm:3000/ assuming you host is called vm. Try opening multiple tabs!
You can change the port number by setting the $PORT environment variable before invoking any of the scripts above, e.g.,
PORT=3001 node server.js