NextPress Starter is a template that offers seamless authentication using AuthJS, integrated with a PostgreSQL database via Prisma ORM. It also includes Shadcn for an elegant UI component setup, making it easy to kickstart your Next.js projects with a modern tech stack.
Welcome to NextPress, a robust starter template designed to get you up and running quickly with the latest stack, including Next.js 14, Auth.js, PostgreSQL, Prisma, ShadCN, and TypeScript. Whether you're starting a new project or looking to streamline your development process, NextPress has you covered with the best practices and tools. Note: Uncomment the Adapter for Database to use it ✨. (server/auth.ts) and Also Remove Eslint Rules from .eslintrc.json. I added those because typescript wont allow me to do unused imports (Those are for snippet codes provided in auth.ts for you ease 🥹)
git clone https://github.com/HasaanAhmad/NextPress-Starter
cd NextPress-Starter
npm install
Create your .env
files based on the .env.example
provided in the repository.
Example:
# DATABASE
DATABASE_URL='YOUR DATABASE URL'
# AUTHJS
AUTH_GOOGLE_ID='GOOGLE CLIENT ID FROM GCP CONSOLE'
AUTH_GOOGLE_SECRET='GOOGLE SECRET ID'
AUTH_SECRET=""
# Add more providers if necessary
npx prisma db push
npx prisma migrate dev
npx prisma generate
npm run dev
Now, navigate to http://localhost:3000
to see the app live.
NextAuth PrismaPress is your go-to solution for building full-stack applications with:
Check out the live version of NextPress hosted at NextPress-Starter.
Crafted with ❤️ by Hasaan Ahmad.
If you find this template useful, feel free to star the repository, and contribute to make it even better!
Contributions are welcome! If you have any suggestions or improvements, feel free to submit a pull request.