next-tailwind-typescript-starter
next-tailwind-typescript-starter copied to clipboard
Starter Boilerplate for Tailwind CSS, TypeScript, and Next.js
Tailwind CSS + TypeScript + Next.js Starter
This is a lightweight starterkit / boilerplate to get up and running with Tailwind CSS, TypeScript and Next.js.
Why make this boilerplate?
Tailwind, Next.js, and TypeScript is an excellent stack for building web apps. The most annoying part of using the stack is setting it up every time, so I made an easy to use template that I and many others can use.
Usage
1. Clone Repo
Github released Github Templates which allows users to generate a new repo from a template repo that will have the exact same files and structure. You can generate your own repo from this template by using this link.
From there, you can clone your own repo and modify it however you like.
If you would rather clone this repo, go to the command line and run:
git clone https://github.com/kyrelldixon/next-tailwind-typescript-starter <your-project-name>
cd <your-project-name>
2. Install Dependencies
pnpm install # npm i
3. Run Development Environment
pnpm dev # npm run dev
Test Production Environment
I also included a stage script that will build and start a production server. You can run it with:
pnpm stage # npm run stage
Alternatively you can run:
pnpm build # npm run build
pnpm start # npm start