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

Published: 09 March 2020
on channel: Bruno Antunes
96,579
1.7k

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...
----
Slides: https://docs.google.com/presentation/...
----
HTTP Verbs/Methods description: https://restfulapi.net/http-methods/
----

Follow me on:
Twitter:   / bmvantunes  
Dev.to: https://dev.to/bmvantunes
Website: https://brunoantunes.net
Github: https://github.com/bmvantunes
LinkedIn:   / bmvantunes  


Watch video Next.js Tutorial - Part 4 | API Routes using SQL Database online without registration, duration hours minute second in high quality. This video was added by user Bruno Antunes 09 March 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 96,579 once and liked it 1.7 thousand people.