Batteries-Included-Next.js

A starting boilerplate for a TS Next.js project with batteries included. Tailwind CSS in JIT mode for styling, Jest and React Testing Library working with path aliases and node-mock-http for API route testing.

This is a Next.js project that includes Tailwind CSS in JIT mode, TypeScript and Jest with @testing-library with working TS path aliases.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

To get JIT Tailwind as you develop, you also need to run:

npm run css:dev
# or
yarn css:dev

For testing, run:

npm run test
# or
yarn test

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.

GitHub

https://github.com/antoniolofiego/Batteries-Included-Next.js