Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example #26

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ NEXT_PUBLIC_APP_URL="https://localhost:3000"
# AUTHENTICATION (@ NEXT-AUTH)
# Secret can be generated with `openssl rand -base64 32`
# Follow instructions at https://codevoweb.com/nextjs-add-google-and-github-oauth2-using-nextauth-js/ to obtain client ids and secrets
AUTH_SECRET=""
JWT_SECRET_KEY=""
AUTH_SECRET="YYqnzuETMaD/lOq0RDtag9ju4oKIywnkl1G6i8KnMAQ="
JWT_SECRET_KEY="NK0qx2tVTjLc5SFvQi1YH4DsF6Ybtns0mzoKrqmktmg="

GOOGLE_ID=""
GOOGLE_SECRET=""
GITHUB_ID=""
GITHUB_SECRET=""
GOOGLE_ID="103573333159683080294"
GOOGLE_SECRET="7b45855e4ecae9d688c136fbb95a97f4d080fa1a"
GITHUB_ID="Iv23liScTgtRuQpXBzzO"
GITHUB_SECRET="17a34599c24c447cafb348b748b0fb00309cb990"

# DATABASE (POSTGRES @ NEON)
# Ensure you append `sslmode=required` after the question mark in your connection string
DATABASE_URL=""
DATABASE_URL="http://localhost:3000"

# EMAIL (@ RESEND)
RESEND_API_KEY=""
RESEND_EMAIL_FROM=""
RESEND_EMAIL_TO=""
RESEND_HOST="smtp.resend.com"
RESEND_USERNAME="resend"
RESEND_PORT="465"
RESEND_API_KEY="re_KfbZeK6U_FFFrjwZmKZuGByDENt5CoKRW"
RESEND_EMAIL_FROM="[email protected]"
RESEND_EMAIL_TO="[email protected]"
RESEND_HOST="googleapis.com"
RESEND_USERNAME="SRMED"
RESEND_PORT="3000"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ yarn-error.log*
# local env files
.env*.local
.env
.env.example

# vercel
.vercel
Expand Down
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\.next\\server\\app\\(landing)\\page.js"
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"WillLuke.nextjs.addTypesOnSave": true,
"editor.inlineSuggest.enabled": true,
"editor.quickSuggestions": {
"other": "inline",
"comments": true,
"strings": true
},
"editor.quickSuggestionsDelay": 100,
"WillLuke.nextjs.hasPrompted": true
}
20 changes: 1 addition & 19 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
# MIT License

Copyright (c) 2023 Piotr Borowiecki

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Copyright (c) 2023 AK01REDWAN
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,58 +58,58 @@ Starter templates for [Next.js 14](https://nextjs.org/) full-stack projects. Bui

## Available configurations:

- ### [next-auth-drizzle-neon-postgres](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-drizzle-planetscale-mysql)
- ### [next-auth-drizzle-neon-postgres](https://github.com/srmed/srmed/tree/srmed-next-auth-mysql)

This branch contains a Next.js 14 starter with Next-Auth authentication using JSON Web Tokens (JWT), and a PostgreSQL database set up at [Neon](https://neon.tech). The database is connected with [Drizzle ORM](https://orm.drizzle.team), which is serverless-compatible. OAuth authentication is also set up for GitHub and Google providers. The set up contains email verification and password reset functionality, both set up with [Resend](https://resend.com) and [React Email](https://react).

- ### [next-auth-drizzle-planetscale-mysql](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-drizzle-planetscale-mysql)
- ### [srmed-next-auth-mysql](https://github.com/srmed/srmed/tree/srmed-next-auth-mysql)

This branch contains a Next.js 14 starter with Next-Auth authentication using JSON Web Tokens (JWT), and a MySQL database set up at [PlanetScale](https://planetscale.com). The database is connected with [Drizzle ORM](https://orm.drizzle.team/), which is serverless-compatible. OAuth authentication is also set up for GitHub and Google providers. The set up contains email verification and password reset functionality, both set up with [Resend](https://resend.com) and [React Email](https://react.email/).

- ### [next-auth-prisma5-serverless-neon-postgres](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-prisma5-serverless-neon-postgres)
- ### [next-auth-prisma5-serverless-neon-postgres](https://github.com/srmed/srmed/tree/next-auth-prisma5-serverless-neon-postgres)

This branch contains a Next.js 14 starter with Next-Auth authentication using JSON Web Tokens (JWT), and a PostgreSQL database set up at [Neon](https://neon.tech). The database is connected via [Prisma](https://prisma.io) v.5, which is serverless-compatible. OAuth authentication is also set up for GitHub and Google. The set up contains email verification and password reset functionality, both set up with [Resend](https://resend.com) and [React Email](https://react.email/).

- ### [next-auth-prisma5-serverless-planetscale-mysql](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-prisma5-serverless-planetscale-mysql)
- ### [next-auth-prisma5-serverless-planetscale-mysql](https://github.com/srmed/srmed/tree/next-auth-prisma5-serverless-planetscale-mysql)

This branch contains a Next.js 14 starter with Next-Auth authentication using JSON Web Tokens (JWT), and a MySQL database set up at [PlanetScale](https://planetscale.com). The database is connected via [Prisma](https://prisma.io) v.5, which is serverless-compatible. OAuth authentication is also set up for GitHub and Google. The set up contains email verification and password reset functionality, both set up with [Resend](https://resend.com) and [React Email](https://react.email/).

- ### [next-auth-docker-local-postgres-drizzle](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-docker-local-postgres-drizzle)
- ### [next-auth-docker-local-postgres-drizzle](https://github.com/srmed/srmed/tree/next-auth-docker-local-postgres-drizzle)

Under construction

- ### [next-auth-docker-local-postgres-prisma](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-docker-local-postgres-prisma)
- ### [next-auth-docker-local-postgres-prisma](https://github.com/srmed/srmed/tree/next-auth-docker-local-postgres-prisma)

Under construction

- ### [next-auth-mongoose-mongodb](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-mongoose-mongodb)
- ### [next-auth-mongoose-mongodb](https://github.com/srmed/srmed/tree/next-auth-mongoose-mongodb)

Under construction

- ### [nestjs-nextjs-next-auth-prisma-sqlite](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/nestjs-nextjs-next-auth-prisma-sqlite)
- ### [nestjs-nextjs-next-auth-prisma-sqlite](https://github.com/srmed/srmed/tree/nestjs-nextjs-next-auth-prisma-sqlite)

Under construction

- ### [nestjs-nextjs-next-auth-drizzle-sqlite](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/nestjs-nextjs-next-auth-drizzle-sqlite)
- ### [nestjs-nextjs-next-auth-drizzle-sqlite](https://github.com/srmed/srmed/tree/nestjs-nextjs-next-auth-drizzle-sqlite)

Under construction

- ### [mern-nextjs-redux](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/mern-nextjs-redux)
- ### [mern-nextjs-redux](https://github.com/srmed/srmed/tree/mern-nextjs-redux)

Under construction

- ### [mern-vite-plain-react-redux](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/mern-vite-plain-react-redux)
- ### [mern-vite-plain-react-redux](https://github.com/srmed/srmed/tree/mern-vite-plain-react-redux)

Under construction

- ### [next-auth-supabase-postgres](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/next-auth-supabase-postgres)
- ### [next-auth-supabase-postgres](https://github.com/srmed/srmed/tree/next-auth-supabase-postgres)

Under construction

- ### [supabase-postgres](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/supabase-postgres)
- ### [supabase-postgres](https://github.com/srmed/srmed/tree/supabase-postgres)

Under construction

- ### [django-rest-djoser-digital-ocean-spaces-aws-ses-next-redux](https://github.com/pjborowiecki/SAASY-LAND-Next-14-Starters-With-Authentication-And-Database-Implemented/tree/django-rest-djoser-digital-ocean-spaces-aws-ses-next-redux)
- ### [django-rest-djoser-digital-ocean-spaces-aws-ses-next-redux](https://github.com/srmed/srmed/tree/django-rest-djoser-digital-ocean-spaces-aws-ses-next-redux)

Under construction
Loading