Back to Browse

Next.js Tutorial - Part 4 | API Routes using SQL Database

98.1K views
Mar 9, 2020
33:12

In this video, I'll show how to use Next.js API Routes with a SQL Database. I'll present a sample screen in order to help you visualize the needed endpoints. Then we will code / create 6 endpoints: /api/vehicles (GET) /api/vehicle/:id (GET) /api/people (GET) /api/person/:id (GET) /api/person/:id (PUT) /api/person/:id/vehicles (GET) All of those endpoints will be connected with a SQL Database SQLite. In the video, I explain why we are using SQLite instead of something like MongoDB or SQL Server. I hope you enjoy the video :) ---- Repository: https://github.com/bmvantunes/youtube-2020-march-nextjs-part4 ---- Slides: https://docs.google.com/presentation/d/1izjQBjUYiF5PCSdDuHcsEAMFYkc--_BTLW-iCby70oI/edit?usp=sharing ---- HTTP Verbs/Methods description: https://restfulapi.net/http-methods/ ---- Follow me on: Twitter: https://twitter.com/bmvantunes Dev.to: https://dev.to/bmvantunes Website: https://brunoantunes.net Github: https://github.com/bmvantunes LinkedIn: https://www.linkedin.com/in/bmvantunes

Download

0 formats

No download links available.

Next.js Tutorial - Part 4 | API Routes using SQL Database | NatokHD