Week 1: Introduction to Fastify & Setting Up the Environment
- Key Concepts:
- What Fastify is and why it’s used.
- Setting up Node.js and Fastify in your environment.
- Introduction to Fastify routing.
- Project: "Hello World API"
- Set up a basic Fastify server that responds with "Hello World" when hitting the root endpoint.
Resources:
Week 2: Understanding Routing, Request, and Response
- Key Concepts:
- Creating routes in Fastify.
- Handling HTTP methods (GET, POST, PUT, DELETE).
- Understanding query strings and route parameters.
- Project: "Simple CRUD API"
- Create a RESTful API with basic routes for a resource (e.g., "Users").
- Implement routes to fetch all users (GET), add a new user (POST), update a user (PUT), and delete a user (DELETE).
Resources:
Week 3: Introduction to MongoDB
- Key Concepts:
- What is MongoDB and how it differs from SQL databases.
- Introduction to MongoDB collections and documents.
- Setting up MongoDB locally or using MongoDB Atlas.
- Project: "Connecting Fastify with MongoDB"
- Set up a MongoDB instance and connect it to your Fastify API.
Resources: