This repository documents my journey through the fundamentals of Node.js, with practical examples and hands-on projects. Each directory inside aulas represents a lesson, showcasing a specific concept or feature of the Node.js ecosystem.
This project is a collection of simple Node.js applications, each demonstrating a core concept. Here's a breakdown of what you'll find in each lesson:
- 01-fundamentos-node-js: The very basics. Learn how to create a simple HTTP server from scratch using the
httpmodule. - 02-fundamentos-node-js: Building a basic API. This lesson introduces request and response handling, routing, and the use of JSON.
- 03-fundamentos-node-js: Diving into Streams. Explore the power of streams for handling data efficiently. This lesson covers
Readable,Writable, andTransformstreams, as well as the concept ofBuffers. - 04-fundamentos-node-js: Data persistence. Learn how to work with a file-based database to store and retrieve data.
- 05-fundamentos-node-js: Building a complete RESTful API. This lesson brings everything together, with a focus on creating a well-structured API with routes, middlewares, and a database module. It also covers advanced routing with URL params and query strings.
You can explore each lesson individually. To run the code:
- Navigate to the desired lesson's directory (e.g.,
cd aulas/01-fundamentos-node-js). - Install the dependencies:
npm install. - Run the server:
npm run dev.
This project was a great opportunity to solidify my understanding of Node.js and its core concepts. Here are some of the key takeaways:
- HTTP Server: How to create and manage an HTTP server.
- Streams: The importance of streams for performance and memory efficiency.
- API Development: The principles of building a RESTful API.
- Code Organization: How to structure a Node.js application for maintainability and scalability.
Feel free to explore the code and learn along with me!