https://github.com/kzamanbd/next-auth
A simple authentication system using Nextjs, NextAuth, Primsa
https://github.com/kzamanbd/next-auth
next-auth nextjs13 postgresql prisma react
Last synced: about 2 months ago
JSON representation
A simple authentication system using Nextjs, NextAuth, Primsa
- Host: GitHub
- URL: https://github.com/kzamanbd/next-auth
- Owner: kzamanbd
- Created: 2023-09-07T17:19:02.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T10:16:42.000Z (over 2 years ago)
- Last Synced: 2023-11-08T11:29:49.122Z (over 2 years ago)
- Topics: next-auth, nextjs13, postgresql, prisma, react
- Language: TypeScript
- Homepage:
- Size: 103 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js (Auth) Starter
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
## Deploy on AWS or Ubuntu
```bash
npm run build
pm2 start npm --name \"next-auth\" --watch app -- start -- --port 3000
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Nginx Configuration
```nginx
server {
listen 80;
listen [::]:80;
server_name example.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
```
## Add SSL Certificate
```bash
yum install certbot python3-certbot-nginx -y
certbot --nginx -d example.com -d www.example.com
systemctl status certbot.timer
certbot renew --dry-run
```