You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Next.js frontend template setup with authentication logic to integrate with a RESTful API. Included examples for fetching data and validating auth info on both the client and server.
Create a .env file at the app root level for configurations
NEXT_PUBLIC_NODE_ENV = DEVELOPMENT
NEXT_PUBLIC_API_URL = http://localhost:8080/api
Install Packages
npm install
Start the application in dev mode
npm run dev
Start the application in production mode
npm run build
npm run start
Visit the application in your browser at:
http://localhost:3000
About
A Next.js frontend template setup with authentication logic to integrate with a RESTful API. Included examples for fetching data and validating auth info on both the client and server.