Skip to content

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.

License

Notifications You must be signed in to change notification settings

zacharynoble/next-typescript-auth-template

Repository files navigation

How to run this project

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages