This repository has the notes and code of learning web development, including React.js, MUI, node.js, and Tornado Web Server.
Sub-directory | Purpose |
---|---|
nodejs | The main demonstration code for backend development using Node.js. |
reactjs | The main demonstration code for frontend development (React.js and MUI). |
tornado | The main demonstration code for Tornado web server. |
Most of the code is self-containing that doesn't depend on any other code to run. However, sometimes I also developed both the frontend and the backend for experiments. See the section "Inter-dependent code" below for more details.
See nodejs/README.md
for more details.
See reactjs/README.md
for more details.
See tornado/README.md
for more details.
I developed the demo code to learn how to implement long polling:
tornado
'ssrv_events_long_poll
andsrv_pub_sub_long_poll
implement two backend services that support long polling.nodejs/events-long-poll.js
implements the client that does the "events long poll" (thus should be used together withsrv_events_long_poll
).reactjs
'sDemoLongPolling.js
implements the client that does both "events long poll" and "pub-sub long poll".