ts-nextjs-tailwind-wordpress-starter Tailwind Templates

Ts Nextjs Tailwind Wordpress Starter

Next.js + Tailwind CSS + TypeScript + Wordpress (config & types) starter

šŸ”‹ ts-nextjs-tailwind-wordpress-starter

Next.js + Tailwind CSS + TypeScript + Wordpress (config & types) starter

Made by Mickasmt

Features

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 !

Requirements

You must have a wordpress project to follow the next steps.

Getting Started

1. Clone this template using one of the two ways:

  1. 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 šŸ˜„

  2. 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
    

2. Install dependencies

npm install
# or
yarn install

3. Add an .env.local file to the root with the following:

WORDPRESS_GRAPHQL_ENDPOINT="http://yourhost.com/graphql"

You can copy/paste (or rename) the .env.local.example file.

4. Run the development server

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.

5. Enjoy !

Top categories

Loading Svelte Themes