Welcome to Node-Farm, a simple Node.js project designed for learning and practicing core concepts. This project provides hands-on experience with essential Node.js skills, drawing inspiration from the "Node.js, Express, MongoDB & More: The Complete Bootcamp 2024" Udemy course.
Click on the image above or use this link to watch the demo video.
Explore the live demo of the Natours web application: Node Farm Demo
Note: The live demo is hosted on a free hosting service, and it may take about 1 or 2 minutes for the server to wake up if it's in a sleeping state.
-
Clone the repository:
git clone https://github.com/AnhtuanUit/node-farm.git
-
Install dependencies:
npm install
-
Ensure nodemon is installed globally (if not already):
npm install -g nodemon
-
Run the server:
npm start
-
File System Operations:
- Demonstrates file read and write operations in Node.js.
- Highlights the difference between blocking and non-blocking I/O.
-
HTML Templating:
- Builds and fills HTML templates with data using manual parsing techniques.
-
Core Module Usage:
- Creates routes using core modules in Node.js without relying on external frameworks like Express.
-
URL Parsing:
- Manually parses URLs from the browser to understand the underlying mechanisms.
-
Module Creation:
- Develops custom Node.js modules to encapsulate functionality and enhance code modularity.
-
npm Module Management:
- Introduces npm, including installing external packages, specifying package versions, and updating packages.
eslint
,eslint-config-airbnb
,eslint-config-prettier
,eslint-plugin-import
,eslint-plugin-jsx-a11y
,eslint-plugin-node
,eslint-plugin-prettier
,eslint-plugin-react
: For linting and maintaining code quality.prettier
: Code formatter for consistent code styling.nodemon
: Monitors changes in files and automatically restarts the server during development.
- This project is a part of the learning journey inspired by the "Node.js, Express, MongoDB & More: The Complete Bootcamp 2024" Udemy course.
- Tuan Do
Feel free to explore the code, experiment with different concepts, and enhance your understanding of Node.js fundamentals. This project intentionally avoids using popular frameworks like Express to provide a deeper understanding of core Node.js concepts. Happy coding!