How lephong19/nodejs works
This repository is a set of Node.js learning exercises, plus a small user-management application. Its user workflow is represented by the app, routing, service, repository, validation, and user data components, but the sampled application files are empty, so their call relationships cannot be verified. The exercises cover core modules, streams, event-loop queues, and HTTP. Edges below are limited to relationships shown in excerpts or documented in the README; unsampled lesson internals are not inferred.
Main entry points: func.js User File Functions · main.js File Exercise Runner · app.js Application Entry · users.json Exercise User Data
Components 23
User App
- Application Entry
Project/app.js - User Routes
Project/router/userRoutes.js - User Service
Project/services/userService.js - Validation
Project/utils/validation.js - User Repository
Project/repositories/userRepository.js - User Events
Project/events/userEvents.js - User Records
Project/data/users.json
Core Modules
- Filesystem Exercises
coreModules/fs/ThucHanh - User File Functions
coreModules/fs/ThucHanh/Bai1/func.js - File Exercise Runner
coreModules/fs/ThucHanh/Bai1/main.js - Exercise User Data
coreModules/fs/ThucHanh/Bai1/users.json - Path Exercises
coreModules/path - EventEmitter Exercises
coreModules/events - Stream Exercises
coreModules/streams
Async Runtime
- Event Loop Overview
enhancesEventLoop/README.md - Timer Queue
enhancesEventLoop/timerQueue/index.js - Check Queue
enhancesEventLoop/CheckQueue/index.js - I/O Queue
enhancesEventLoop/IOQueue/index.js - Microtask Queue
enhancesEventLoop/MicrotackQueue/index.js
HTTP Lessons
- HTTP Exercises
http
Node Foundations
- npm Topic
npm/README.md - Node.js Foundations
whatIsNodeJS/README.md
Other components
- User
Connections 3
- User → Application Entry: uses
- File Exercise Runner → User File Functions: calls
coreModules/fs/ThucHanh/Bai1/main.js - User File Functions → Exercise User Data: reads and writes
coreModules/fs/ThucHanh/Bai1/func.js