This is a really simple project template that can be used to setup a project using Next.js with TypeScript, TailwindCSS, Jest and React Testing Library.
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example https://github.com/fmlharrison/next-typescript-tailwind-jest-template <YOUR_APP_NAME>
yarn create next-app --example https://github.com/fmlharrison/next-typescript-tailwind-jest-template <YOUR_APP_NAME>
pnpm create next-app --example https://github.com/fmlharrison/next-typescript-tailwind-jest-template <YOUR_APP_NAME>
yarn dev
This will start a local server and you can see the app in action at http://localhost:3000/
yarn test
This will run the test suite. To start with it is just a single component test - Greetings.spec.tsx