Skip to content

sebivenlo/esd-2024-nextjs_workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js Workshop

Welcome to the Next.js Workshop, designed to guide you through the basics of Next.js with hands-on learning and interactive assignments. By the end of this workshop, you'll have a solid foundation in Next.js and the skills to build dynamic web applications.


Table of Contents

  1. Setup
  2. Workshop Assignments
  3. Additional Information
  4. Advanced Challenge
  5. Why Learn Next.js?
  6. Learning Resources

Setup

Navigate to the Project Folder

  1. Clone the Repository: Start by cloning the repository:

    git clone https://github.com/sebivenlo/esd-2024-nextjs_workshop.git
  2. Open the Next.js Assignment Folder: In VS Code:

    • Go to File > Open Folder.
    • Select the nextjs_assignment folder from the cloned repository.

Run the Dev Container in VS Code

  1. Reopen in Container: After opening the nextjs_assignment folder in VS Code, you should see a pop-up message suggesting:

    "Folder contains a Dev Container configuration. Would you like to reopen it in a container?"

    If the message does not appear:

    • Press Ctrl + Shift + P (or Cmd + Shift + P on Mac).
    • Select Remote-Containers: Reopen in Container.
  2. Let the Container Build:

    • VS Code will build the container, install dependencies, and set up the environment.
    • This may take a few minutes during the first build.
  3. Start the Next.js Development Server: Once the container is ready:

    • Open the integrated terminal in VS Code (Ctrl + `).
    • Run the following command:
      npm run dev
    • Visit http://localhost:3000 in your browser to view the app.

Workshop Assignments

Assignment Overview

Each assignment is designed to teach a core concept of Next.js, with practical examples and step-by-step instructions.

  1. Assignment 1: Basic Routing and Components
    Learning Objectives:

    • Learn how to create routes using the file system
    • Build basic pages with React components
    • Use Link for navigation
    • Style components with Tailwind CSS
  2. Assignment 2: Server-Side Rendering and Data Fetching
    Learning Objectives:

    • Understand Server-Side Rendering (SSR) and Static Site Generation (SSG)
    • Learn how to fetch and display data using Next.js functions
    • Implement Incremental Static Regeneration (ISR) for dynamic updates
  3. Assignment 3: API Routes and Middleware
    Learning Objectives:

    • Learn how to create custom API routes in Next.js
    • Implement middleware for request handling
    • Handle form submissions using API routes
  4. Assignment 4: Authentication and Protected Routes
    Learning Objectives:

    • Implement a basic authentication flow
    • Protect specific routes from unauthorized access
    • Manage user sessions

Completing Assignments

Navigate to the Documentation/Assignments folder for detailed instructions. Each assignment includes:

  • Learning objectives
  • Step-by-step guides
  • Partial code snippets to help you complete tasks

Additional Information

For a deeper understanding of Next.js, explore the Information folder:

  • Next.js Basics: Comprehensive introduction to Next.js concepts, including routing, rendering strategies, and core features
  • Pros and Cons of Next.js: Detailed analysis of Next.js advantages and challenges

Advanced Challenge

Calendar Project

After completing the workshop, challenge yourself with the Calendar Project. This is a more comprehensive project to apply your Next.js skills.

Details include:

  • Thorough documentation for each step
  • Assignments broken down into manageable tasks
  • Practical use of advanced Next.js concepts

Note: This project is not included in the Docker setup but can be worked on separately.


Why Learn Next.js?

Next.js is a powerful React framework that simplifies web development by offering:

  • SEO Optimization: Built-in tools for search engine rankings
  • Performance Boosts: Static site generation and server-side rendering
  • Full-Stack Capabilities: Create APIs and frontend in a single project

Learning Resources

Here are some helpful links to enhance your learning experience:


Happy coding and enjoy the workshop! 🚀

About

esd-2024-esd-2024-esd-template created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.2%
  • CSS 1.1%
  • JavaScript 1.1%
  • Dockerfile 0.6%