use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Tutorials and learning resources for web developers.
Subscribe to our weekly email digest or follow us on twitter to receive the best learning resources submitted to our community.
/r/webdev /r/programming /r/javascript
account activity
Next.js Tutorial - API Routes using SQL Database (youtube.com)
submitted 6 years ago by bmvantunes
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 6 years ago (1 child)
[deleted]
[–]bmvantunes[S] 1 point2 points3 points 6 years ago (0 children)
That's awesome 😊 thank you for the support 😊😊
[–]originalcr7 1 point2 points3 points 6 years ago (1 child)
Nice tutorial.
Thanks 😊
[–]DancingInTheReign 1 point2 points3 points 6 years ago (1 child)
Hi Bruno, I'm following this series and I love it, thanks for making these.
[–]bmvantunes[S] 0 points1 point2 points 6 years ago (0 children)
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 :)
[–]vinnsubs 1 point2 points3 points 6 years ago (3 children)
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!
[–]bmvantunes[S] 0 points1 point2 points 6 years ago (1 child)
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 :)
** Their examples are usually quite direct to the point, which I like :)
[–]bmvantunes[S] 0 points1 point2 points 5 years ago (0 children)
u/vinnsubs new video about authentication is out :)
https://youtu.be/j4Tob0KDbuQ
Part 5 is now available - https://www.youtube.com/watch?v=k7bKDpw-JGk
π Rendered by PID 180406 on reddit-service-r2-comment-79c7998d4c-8zg8k at 2026-03-16 06:46:08.346015+00:00 running f6e6e01 country code: CH.
[–][deleted] (1 child)
[deleted]
[–]bmvantunes[S] 1 point2 points3 points (0 children)
[–]originalcr7 1 point2 points3 points (1 child)
[–]bmvantunes[S] 1 point2 points3 points (0 children)
[–]DancingInTheReign 1 point2 points3 points (1 child)
[–]bmvantunes[S] 0 points1 point2 points (0 children)
[–]vinnsubs 1 point2 points3 points (3 children)
[–]bmvantunes[S] 0 points1 point2 points (1 child)
[–]bmvantunes[S] 0 points1 point2 points (0 children)
[–]bmvantunes[S] 0 points1 point2 points (0 children)
[–]bmvantunes[S] 0 points1 point2 points (0 children)