Server-side programming

This chapter goes through the basics of the JavaScript programming on the server side using Node.js.

  • 4-1. Node primer
    • compare node.js and browser env
    • event loop
    • modules, NPM
    • package.json
    • semantic versioning
  • 4-2. Asynchronous callback
    • asynchronous I/O operations
    • event and event handlers
    • sequential I/O operations
  • 4-3. Promises
    • promises, state and result
    • then and catch handlers
    • chaining promises
    • handling errors
    • await and async
  • 4-4. ES modules
    • modules: built-in, local, NPM
    • named exports
    • default export
    • compatibility with CommonJS
  • 4-5. Database access
    • sqlite
    • SELECT, INSERT, UPDATE, DELETE

Here are some useful online reference for this chapter.