r/WebdevTutorials • u/bmvantunes • Mar 10 '20
Next.js Tutorial - API Routes using SQL Database
https://www.youtube.com/watch?v=PxiQDo0CmDE&feature=share2
u/DancingInTheReign Mar 11 '20
Hi Bruno, I'm following this series and I love it, thanks for making these.
1
u/bmvantunes Mar 11 '20
Thanks, u/DancingInTheReign :)
Anything specific about Next.js that you would love to be covered? :)
PS - The next video will be about integrating Material-UI and CSS-In-Js libraries with Next.js in order to start a bigger demo :)
2
u/vinnsubs Mar 11 '20
This is awesome!
Iβm a little new to the whole API/back end part of things - pardon if this makes you palm your face - but is it possible to make session based authentication with Next API Routes? Can I build an entirely user protected system with querying to a MySQL database as long as youβre authenticated?
If not, maybe you could guide me to some articles?
Thanks!
1
u/bmvantunes Mar 11 '20
I think the best examples you have are actually inside the Next.js repository itself. I'll put one of those examples here (they have 5 more with auth):
https://github.com/zeit/next.js/tree/canary/examples/auth0
The full folder of examples from next.js (where you have 5 more with "auth") can be found at:
https://github.com/zeit/next.js/tree/canary/examples
Their examples are using quite direct to the point, which I like :)
1
1
1
0
2
u/originalcr7 Mar 10 '20
Nice tutorial.