Next.js + Tailwind CSS + TypeScript + Wordpress (config & types) starter
Made by Mickasmt
This repository is 🔋 battery packed with:
- ⚡️ Next.js 12
- ⚛️ React 18
- ✨ TypeScript
- 💨 Tailwind CSS 3
- ⏳ Incremental Static Regeneration (ISR)
- 📈 Absolute Import and Path Alias — Import components using
@/
prefix
👀 More features details coming soon !
You must have a wordpress project to follow the next steps.
-
Use this repository as template
Disclosure: by using this repository as a template, there will be an attribution on your repository.
I'll appreciate if you do, so this template can be known by others too 😄
-
Using
create-next-app
npx create-next-app -e https://github.com/mickasmt/ts-nextjs-tailwind-wordpress-starter project-name # or yarn create next-app -e https://github.com/mickasmt/ts-nextjs-tailwind-wordpress-starter project-name
npm install
# or
yarn install
WORDPRESS_GRAPHQL_ENDPOINT="http://yourhost.com/graphql"
You can copy/paste (or rename) the .env.local.example
file.
You can start the server using this command:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result. You can start editing the page by modifying src/pages/index.tsx
.