u/bmvantunesin r/node • Recommends
Next.js API Routes using next-connect (next-connect API is similar to Express.js)
#next.js#next-connect#apiroutes
21K subscribers • 7 videos on Hallway
Intermediate. Assumes working knowledge.
18K views6 years ago1 recommendation
Web developmentVue, Svelte, Angular and othersNode.js, Deno and Bun
Bruno Antunes demonstrates how to create Next.js API routes and implement middleware for authentication and authorization using next-connect.
In this video, we will create Next.js API Routes using next-connect. We will also show how to have middleware using next-connect for authentication and authorization. Next-connect has an API similar with express.js which feels familiar to most of us =) Timeline: Introduction Show database structure Show /api/champions using POSTMAN working for all methods Show /api/drivers using switch/case Use next-connect for /api/champions Setup onNoMatch in next-connect Setup onError in next-connect Share next-connect handlers across our api routes Move from switch/case to next-connect Middleware for authentication and authorization Conclusion ---- Git Repository: github.com/bmvantunes/youtube-2020-july-next-api-routes-next… ---- Next.js Authentication Tutorial: youtube.com/playlist?list=PLYSZyzpwBEWS3vaMHM8cCJv6qv6DNzzA9 ---- Next.js API Routes tutorial: youtube.com/watch?v=PxiQDo0CmDE ---- HTTP Verbs/Methods description: restfulapi.net/http-methods/ ---- ---- Follow me on: Twitter: twitter.com/bmvantunes Dev.to: dev.to/bmvantunes Website: brunoantunes.net Github: github.com/bmvantunes LinkedIn: linkedin.com/in/bmvantunesu/bmvantunesin r/node • Recommends