Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


Authress media banner

# 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