This is a Next.js project bootstrapped with create-next-app.
This app requires the back end set up and running. Once you've set up the back end, continue with the instructions.
First, install the npm dependencies using the command line and running the following inside the 'MyFirstBlogFrontEnd' directory:
npm installNext, create a new file named .env.local and copy the contents of the .env.local.example file into it. We'll be filling in the missing entries throughout this setup.
Ensure the backend server is running.
Then, run the development server:
npm run devFinally, open http://localhost:3000 in your browser to view the website.
You can start editing the page by modifying pages/index.js. The page will automatically update as you edit the file.
To enable authentication, create an account with Auth0. The registration process will have you create a default app.
-
You can press continue on the next page. You can modify the login box in the future if you wish.

-
Test out the login box to see how it works when it's set up properly.
-
Next, navigate to the application's page.
-
Fill in your
.env.localfile with the tokens found on the settings pageREPLACE_WITH_AUTH0_DOMAINshould be replaced with theDomainvalue from the settings page. Make sure the full variable starts withhttps://REPLACE_WITH_AUTH0_CLIENT_IDshould be replaced with theClient IDREPLACE_WITH_AUTH0_SECRETshould be replaced with theClient Secret
-
Add
http://localhost:3000/api/auth/callbackto theAllowed Callback URLs
-
Add
http://localhost:3000to the following in the auth0 application settings dashboard:Allowed Logout URLsAllowed Web OriginsAllowed Origins (CORS)
-
Save the changes to the auth0 application
-
Test by starting up the server using
npm run dev, navigating to http://localhost:3000, clicking the login button, and either signing up as a new user or signing in with your google account
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
To learn more about the technologies used in this site, see the following resources:
- Tailwind CSS - the official Tailwind CSS documentation
- Next.js - the official Next.js documentation
- Headless UI - the official Headless UI documentation
- MDX - the MDX documentation
- Auth0 - the Auth0 documentation





