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.
What is Next.js?
Next.js - The React Framework. Production grade React applications that scale. The world’s leading companies use Next.js to build static and dynamic websites and web applications.
I hope you enjoy the video :)
#reactjs #sql #databases #javascript #next