illustration for Effectively Build RESTful APIs using Next.js API Routes
pro

Effectively Build RESTful APIs using Next.js API Routes

20m closed-captioning
·
9 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.2
283
people completed
Published 3 years ago
|
Updated 3 years ago

Building an API might be an intimidating process, especially if you are starting to learn how to design your backend application.

You might find yourself asking how to design for performance? or how do you even create a consistent API?

RESTful APIs allow you to improve scalability, are cacheable and flexible.

API Routes are one of the most powerful features in Next.js because they let you build backend APIs without needing to create a custom server or spin up a new project/service. This eliminates the need to develop the backend for your application in another repository, which means less code, and less code means fewer bugs!

With this course, you will understand how to call handle different HTTP verbs for their RESTful APIs in Next.js as well as learn that Next.js is a viable option to create RESTful APIs.

With that said, after this course, you'll also learn and understand that having one file per route is okay, and each API route in Next.js is serverless, which means the concept of state doesn't exist.

Gain these skills:

  • Add middleware with next-connect
    • Understand the concept of middleware and how it affects requests
  • Refactoring RESTful APIs
  • How to call APIs in React/Next.js
  • Use dynamic routes

Course Content

20m • 9 lessons

    You might also like these resources:

    illustration for Integrate Storybook in a Next.js Application
    Michael Chan • 10m • Course

    In this course, Michael Chan will teach you how to integrate Storybook 6.3 with Next.js 11 so that you can flawlessly build UIs.

    illustration for Build a SaaS product with Next.js, Supabase and Stripe
    Jon Meyers • 1h 10m • Course

    You'll build a static app with authentication that is backed by a database, change the structure of that database without compromising data, and take payments for subscriptions.

    illustration for Build a site from scratch with Next.js, TypeScript, Emotion and Netlify
    Tomasz Łakomy ・37m ・Course

    In this course, we're going to learn how to harness the power of Next.js + TypeScript and how to work with Netlify in order to deploy our site for others to enjoy!