Skip to content

A boilerplate that includes Next.js, Tailwind CSS, next-i18next, Jest, react-testing-library and more...

Notifications You must be signed in to change notification settings

BerkeKaragoz/next-ts-tailwindcss-i18n

Repository files navigation

next-ts-tailwindcss-i18n

next-ts-tailwindcss-i18n_picture

I made this boilerplate while developing my personal website.

Next.js

Amazing developer experience.

TypeScript

Safety and tight integration with your editor.

Tailwind CSS

A rapid and utility-first CSS framework.

  • @tailwindcss/typography
  • tailwindcss-rtl (by 20lives)
  • Theme Colors
  • primary, secondary, accent, background

next-i18next

Internationalization framework for Next.js which uses react-i18next under the hood.

Jest and React Testing Library

Generic testing tools.

atomic design

Methodology for creating design systems.

Error Page Template

404 and 500 error pages do exist as a sample.

Height Breakpoints and Media Queries

xsh, smh, mdh, lgh, xlh.

Import Path Aliases

@/components, @/lib, @/styles...

Recommended VSCode Extensions

Headwind, Auto Rename Tag and Prettier.

CNA Samples

You can check out modified Create Next App welcome pages as small examples.

Other

Check the snippets under .vscode. Care motion and color scheme preference. Try to use text-direction sensitive properties. Use Emmet.

Getting Started with Next.js

First, run the development server:

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 pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Screenshots

overview

404 page

sample page turkish light mode