Skip to content

garyboyle/nextjs-nextauth-monk-react

Repository files navigation

Frameworks, libraries, tools

Libraries.io dependency status for GitHub repo

Initially this app was created using the Create React App. This allows you to set up a react app with little to no configuration.

Next.js was then added to the project. You do have the option of creating a Next.js app from scratch but I wanted to test out retrofitting Next.js into a react app. Turns out it's fairly straight forward.

I wanted to play aroung with authentication, particulary OAuth and password-free sign in like the magic links that Slack uses so I opted for NextAuth. To send the magic link I need an smtp server so I went for Twilio SendGrid though Amazon Simple Email Service (SES) is another option. A third option is to use a mail catcher like MailHog and run that locally.

To store authentication tokens NextAuth requires a database I opted for MongoDB. And I'm using Monk to programmatically interact with the database.

And finally this is all deployed on Heroku using the Next.js on Heroku buildpack.

About

A sample project to try out NextJS, NextAuth and Monk

Topics

Resources

Stars

Watchers

Forks