- 1. NodeJS
- 2. NodeJS basic
- 2.1. What is NodeJS ?
- 2.2. NodeJS Installation
- 2.3. NodeJS Installation Linux
- 2.4. NodeJS version
- 2.5. Hello World
- 2.6. Comments
- 2.7. Exercise: Hello World
- 2.8. Hello World with sh
- 2.9. Literal Values and types
- 2.10. Declare variables with let
- 2.11. Hello World in function
- 2.12. Parameter passing to function
- 2.13. for loop
- 2.14. Array
- 2.15. Command line arguments (argv)
- 2.16. Command line arguments - forEach (argv)
- 2.17. Define function with arrow notation
- 2.18. setTimeout - delayed execution
- 2.19. setInterval - scheduled execution
- 2.20. clearInterval
- 2.21. clearTimeout
- 2.22. Template literals (template strings) - variable interpolation
- 2.23. Scope of variables and constants
- 2.24. constant (const)
- 2.25. var
- 2.26. let
- 2.27. var let
- 2.28. let var
- 2.29. Create library
- 2.30. Function as a Library
- 2.31. Loading a library twice
- 2.32. What is in a module?
- 2.33. OS module
- 2.34. The path related tools
- 2.35. Path to the current file
- 2.36. Relative path inside a project
- 2.37. Exception
- 2.38. REPL
- 2.39. Debugging
- 2.40. Callback
- 2.41. Closure
- 3. File-system related operations (fs)
- 3.1. File-system related operations (fs)
- 3.2. Read file
- 3.3. Write file
- 3.4. Append to file
- 3.5. Delete file (unlink file)
- 3.6. Read (and write) file by chunks
- 3.7. Read (and write) file by chunks using pipe
- 3.8. Create a directory (folder) (mkdir)
- 3.9. Remove a directory (folder) (rmdir)
- 3.10. Read directory sync (readdirSync)
- 3.11. Read directory async (readdir)
- 3.12. Read directory async error handline
- 3.13. Rename a file (rename)
- 4. OOP
- 4.1. Class
- 5. HTTP
- 5.1. HTTP Hello World
- 5.2. HTTP Return JSON
- 5.3. HTTP Server
- 5.4. Transfer-Encoding: chunked
- 5.5. Mashup
- 6. Net
- 6.1. The net module
- 6.2. TCP Server
- 6.3. TCP Echo Server
- 6.4. Chat server
- 6.5. Remove dead sockets
- 6.6. Stop echoing
- 7. npm
- 7.1. npmjs
- 7.2. npm init
- 7.3. package json
- 7.4. npm install PACKAGE
- 7.5. Development dependencies
- 7.6. Semanic Versioning
- 7.7. npm install
- 7.8. npx
- 7.9. Linter - ESLint
- 8. Express
- 8.1. Install Express
- 9. Testing for NodeJS projects
- 9.1. Testing - Application Under Test
- 9.2. Using the JavaScript library
- 9.3. Testing Demo with Mocha
- 9.4. Testing Demo with Mocha success
- 9.5. Testing Demo with Mocha failure
- 10. Appendix
- 10.1. Other
- 10.2. Resources
- 10.3. request
- 10.4. http client
- 10.5. ping
- 10.6. Telnet server
- 10.7. HTTP Server