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.git
After cloning, navigate to the project directory and install the dependencies using your package manager of choice:
cd nextjs-starter
yarn install
or
cd nextjs-starter
npm install
or
cd nextjs-starter
pnpm install
Once the dependencies are installed, you can start the development server using:
yarn dev
or
npm run dev
or
pnpm run dev
This will start the Next.js development server on http://localhost:3000
.
To build the application for production, run:
yarn build
or
npm run build
or
pnpm run build
You can build the application using Turbo by running:
yarn turbo build
or
npm turbo build
or
pnpm turbo build
For more information on using Turbo Repo, see the official documentation.
To run the test suite, use:
yarn test
or
npm run test
or
pnpm run test
This 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.