This is a Next.js project bootstrapped with create-next-app
.
Here is how you can run the project locally:
-
Clone this repo
git clone [email protected]:fahmiidris/nextjs-app-dir-template.git
-
Go into the project root directory
cd nextjs-app-dir-template
-
Copy
.env.example
to.env
cp .env.example .env
-
Install JS dependencies
pnpm install
-
Start the dev server
pnpm run dev
Here is how you can use this template to create a new Next.js project:
Click the Use this template button in the top right corner, and then click Create new repository
2. Using create-next-app
pnpx create next-app -e https://github.com/fahmiidris/nextjs-app-dir-template project-name
Replace project-name
with the name of your project.
This template is specified if you want to use the following tech stack combination:
- Next.js
- TypeScript
- NextAuth.js
- tRPC
- Drizzle
- PostgreSQL
- Tailwind CSS
If you want more flexibility in choosing the stack you want to use, I recommend using create-t3-app
instead.