r/WebdevTutorials • • Mar 10 '20

Next.js Tutorial - API Routes using SQL Database

https://www.youtube.com/watch?v=PxiQDo0CmDE&feature=share
55 Upvotes

10 comments sorted by

2

u/originalcr7 Mar 10 '20

Nice tutorial.

2

u/bmvantunes Mar 10 '20

Thanks 😊

2

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

u/bmvantunes Mar 11 '20

** Their examples are usually quite direct to the point, which I like :)

1

u/bmvantunes Mar 24 '20

u/vinnsubs new video about authentication is out :)

https://youtu.be/j4Tob0KDbuQ

0

u/[deleted] Mar 10 '20

[deleted]

2

u/bmvantunes Mar 10 '20

That's awesome 😊 thank you for the support 😊😊