https://github.com/trace2798/example-nextjs-appdirectory
https://github.com/trace2798/example-nextjs-appdirectory
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/trace2798/example-nextjs-appdirectory
- Owner: trace2798
- Created: 2023-06-12T10:09:49.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-26T04:55:50.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T06:48:07.705Z (5 months ago)
- Language: TypeScript
- Size: 146 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Passage + Next.js 13.4 App Router Example
## Getting Started
### Either fork the repo or directly clone it
### Prerequisites
**Node version 14.x**
### To directly clone the repo
```shell
git clone https://github.com/passageidentity/example-nextjs.git
```
Then```shell
cd 03-Login-app-directory
```### Install packages
```shell
npm i
```### Setup .env file
```js
NEXT_PUBLIC_PASSAGE_APP_ID=
# Note that because this example uses the passage-node package, an API key is required.
# You can retrieve an API key for your application by going to the Dashboard and selecting Settings, then API Keys.
NEXT_PUBLIC_PASSAGE_API_KEY=
```### Start the app
```shell
npm run dev
```## Available commands
Running commands with npm `npm run [command]`
| command | description |
| :-------------- | :--------------------------------------- |
| `dev` | Starts a development instance of the app |
| `build` | To build your application |
| `start` | Starts a production instance of the app |