|
|
před 9 roky | |
|---|---|---|
| public | před 9 roky | |
| .editorconfig | před 9 roky | |
| .eslintrc.js | před 9 roky | |
| .gitignore | před 9 roky | |
| LICENSE | před 9 roky | |
| README.md | před 9 roky | |
| comments.json | před 9 roky | |
| package.json | před 9 roky | |
| server.go | před 9 roky |
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