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
Смотрите видео Next.js Tutorial - Part 4 | API Routes using SQL Database онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Bruno Antunes 09 Март 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 96,579 раз и оно понравилось 1.7 тысяч людям.