Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/authress/nextjs-starter-kit
Authress Starter Kit: Next.js
https://github.com/authress/nextjs-starter-kit
authentication authorization authress login nextjs quick-start starter-kit user
Last synced: about 2 months ago
JSON representation
Authress Starter Kit: Next.js
- Host: GitHub
- URL: https://github.com/authress/nextjs-starter-kit
- Owner: Authress
- Created: 2024-01-29T18:01:38.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-21T10:43:32.000Z (11 months ago)
- Last Synced: 2024-02-21T11:44:53.409Z (11 months ago)
- Topics: authentication, authorization, authress, login, nextjs, quick-start, starter-kit, user
- Language: TypeScript
- Homepage: https://authress.io
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authress Starter Kit: Next.js
This repository is a repo template that contains a Nex.js example that uses Authress to Login. You can either [Fork](https://github.com/new?template_name=nextjs-starter-kit&template_owner=Authress) this repository to start with the template, or directly clone it above.
## Getting Started
1. Fork this template repository to start a new Next.js project: [Fork this template](https://github.com/Authress/nextjs-starter-kit/fork)
2. Clone the new repository:```sh
git clone [email protected]:Authress/nextjs-starter-kit.git
cd nextjs-starter-kit
```3. Run `npm install` and then `npm run dev`. (Or use yarn/pnpm to install dependencies and then `start` the site.)
4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.### File Directory
* `src/app`
* `page.tsx` - Landing page which has login and logout buttons
* `authressClient.tsx` - Configuration for Authress for users to login
* `protected/page.tsx` - Page protected by user login via the login guard defined in the `main.tsx` file