A blog type application built using Next 14 to familiarize with the framework's latest features including server components, and server actions and mutations.
https://next-posts-zeta.vercel.app/posts
username: john@email.com
password: userpass
- Next14
- NextAuth
- Prisma
- Postgres
- React Hook Form
- Zod
Copy the .env.example file in this directory to .env(which will be ignored by Git):
- Info regarding
NEXTAUTH_SECRET
can be found here - Info regarding
GOOGLE_CLIENT_ID
andGOOGLE_CLIENT_SECRET
can be found here - In order to remove either the Client or Google providers, the specific provider needs to be removed from the providers array in the route file in
[...nextauth]
A database is needed to persist user accounts and to support email sign in.
The template uses Prisma as the ORM and Postgres as the database. Add the database URL in the .env
file.
Run the migrations and generate the Prisma client. Further information regarding Prisma can be found here
To run your site locally, use:
npm run dev