This is a starter template for building Next.js applications with tRPC, Chakra UI, Turbo Repo, and Vitest.
- Next.js - React framework for building server-side rendered and static websites
- tRPC - TypeScript based Remote Procedure Call (RPC) framework
- Chakra UI - React component library for building accessible and customizable UIs
- Turbo Repo - A tool for building and deploying serverless applications
- Vitest - A fast and modern test runner for Jest
To use this starter template, first clone this repository using:
git clone https://github.com/meratusdev/nextjs-starter.gitAfter cloning, navigate to the project directory and install the dependencies using your package manager of choice:
cd nextjs-starter
yarn installor
cd nextjs-starter
npm installor
cd nextjs-starter
pnpm installOnce the dependencies are installed, you can start the development server using:
yarn devor
npm run devor
pnpm run devThis will start the Next.js development server on http://localhost:3000.
To build the application for production, run:
yarn buildor
npm run buildor
pnpm run buildYou can build the application using Turbo by running:
yarn turbo buildor
npm turbo buildor
pnpm turbo buildFor more information on using Turbo Repo, see the official documentation.
To run the test suite, use:
yarn testor
npm run testor
pnpm run testThis will run the tests using Vitest.
Contributions are welcome! Please feel free to submit a pull request or open an issue.
This starter template is licensed under the MIT License.