Frederic G. MARAND 16f42c90cb Listing 21: adding comments - optimistic updating. | пре 9 година | |
---|---|---|
public | пре 9 година | |
.editorconfig | пре 9 година | |
.eslintrc.js | пре 9 година | |
.gitignore | пре 9 година | |
LICENSE | пре 9 година | |
README.md | пре 9 година | |
comments.json | пре 9 година | |
package.json | пре 9 година | |
server.go | пре 9 година |
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