Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shuklaritvik06/nodejsprojects
Learning and Projects using Nodejs :)
https://github.com/shuklaritvik06/nodejsprojects
backend ejs handlebars nodejs nunjucks opensource pugjs
Last synced: 26 days ago
JSON representation
Learning and Projects using Nodejs :)
- Host: GitHub
- URL: https://github.com/shuklaritvik06/nodejsprojects
- Owner: shuklaritvik06
- License: mit
- Created: 2022-03-03T06:58:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T13:01:21.000Z (7 months ago)
- Last Synced: 2024-10-10T23:04:12.817Z (26 days ago)
- Topics: backend, ejs, handlebars, nodejs, nunjucks, opensource, pugjs
- Language: JavaScript
- Homepage:
- Size: 1.38 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NodejsProjects
- [x] Url Shortner
- [x] Todo App
- [x] Blog App
- [x] CLI
- [x] Chat App
- [x] API Proxy
- [x] PostBox
- [x] Shareongo
- [x] Meet&Greet
- [x] Password Protected sharing- Init Project -> Top Level Code -> Require Modules -> Event Callback Register -> CPU Task Offload to thread pool (4-128) -> Event Loop -> Expired Timer -> IO Pooling -> Set Immediate Callback ->Close callback ->exit
The Node.js event loop is a crucial aspect that enables non-blocking I/O operations despite JavaScript being single-threaded
1. **Timers Phase:** Executes callbacks scheduled by `setTimeout()` and `setInterval()`.
2. **Pending Callbacks Phase:** Executes I/O callbacks deferred to the next loop iteration.
3. **Idle, Prepare Phase:** Internally used phases.
4. **Poll Phase:** Retrieves new I/O events and executes I/O-related callbacks, blocking when necessary. It can transition to the next phase if certain conditions are met.
5. **Check Phase:** Executes `setImmediate()` callbacks immediately after the poll phase, if scheduled.
6. **Close Callbacks Phase:** Handles close callbacks, such as 'close' events for sockets.