Nextjs-pages-starter-template Tailwind Templates

Nextjs Pages Starter Template

This repository serves as a starter template for Next.js projects, designed for seamless integration with Tailwind CSS and Typescript. It provides a solid foundation for building modern web applications with essential tools and libraries pre-configured.

Zenkoders | Project Structure - NEXT JS

public

  • assets: Static Images

src

  • components

    • Button
      • index.tsx
    • HigherOrderComponent
      • index.tsx
  • contextAPI || Redux || Zustang || Or any state management package

    • Add your state management files here.
  • mocks

    • Add your mock data files here
  • hooks

    • Add your custom hooks here
  • libs

    • Add libs extension here.
  • providers

    • All providers that are used in your _app.tsx should be separately defined in providers folder.
  • Schema

    • Schema related to Formik, Yup or React Hook form should be planed in here with specific file name.
    • If NextJS Apis are used so then the back-end database modules schema should be defined here
  • pages

    • api
      • Add your API routes here
    • users
      • [uid].tsx
      • index.tsx
    • auth
      • login.tsx
      • register.tsx
  • styles

    • global.css
  • types

    • interfaces
      • user.interface.ts
    • enums
      • subscriptionStatus.enum.ts
  • utils

    • Add utility functions here (e.g., date formatting, string manipulation)
  • config

    • Add configuration files here (e.g., theme, app settings)
    • Any configuration required in your project should be added in config file. For example: Fonts Configuration
  • services

    • API.ts
    • AxiosRequests.ts
  • views

    • Registration
      • index.tsx

Project Files

  • .env.example
  • .env.staging
  • .env.production
  • .gitignore
  • next.config.js
  • package.json
  • README.md

Top categories

tailwind logo

Need a Tailwind website built?

Hire a professional TailwindCSS developer today.
Loading Svelte Themes