More Premium Hugo Themes Premium Nextjs Themes

Trpc Turborepo Next Tailwind Prisma Openapi Swaggerui Template

Turborepo tRPC Express Next Tailwind Prisma Template with OpenAPI and SwaggerUI

Trpc Turborepo Next Tailwind Prisma Openapi Swaggerui Template

Turborepo tRPC Express Next Tailwind Prisma Template with OpenAPI and SwaggerUI

Author Avatar Theme by hiperultimate
Github Stars Github Stars: 22
Last Commit Last Commit: Oct 2, 2023 -
First Commit Created: Oct 26, 2023 -
Trpc Turborepo Next Tailwind Prisma Openapi Swaggerui Template screenshot

Overview:

The tRPC Server Client Turborepo Template is a clean template designed to help kickstart web application projects by providing a pre-configured monorepo setup. It includes an Express tRPC server with Prisma ORM, a Next.js application, and various other packages and apps that work together to create a powerful server-client architecture. The template offers a seamless development experience and comes with integrated API documentation through OpenApi and SwaggerUI. Users can customize the template according to their specific requirements.

Features:

  • Express tRPC server with Prisma ORM
  • Next.js application with tRPC client
  • API documentation through OpenApi and SwaggerUI
  • TailwindCSS integration for styling
  • React component library for UI components
  • Easy database setup with options for PostgreSQL or Docker

Installation:

  1. In the root directory, install dependencies by running the following command:
yarn install
  1. Copy the “.env.example” file and rename it to “.env” in the root directory.

  2. To configure the database for your project, you have two options:

    • If you have a PostgreSQL database ready, add the connection string to the “DATABASE_URL” variable in the “.env” file.
    • If you don’t have a database and have Docker installed, you can set it up using the provided script command. Refer to the “docker-compose.yaml” file in the “packages/prisma” directory for more details.
  3. You can run scripts in the root directory by typing the following command in the CLI:

yarn run dev

This command will run the entire monorepo.

Summary:

The tRPC Server Client Turborepo Template provides a convenient and customizable starting point for web application projects. It includes a well-integrated combination of technologies such as Express, tRPC, Prisma, Next.js, and TailwindCSS, which together enable users to build robust and efficient applications. The template also provides documentation features through OpenApi and SwaggerUI, making it easier to document and communicate the API functionality. With clear installation instructions and options for easy database setup, this template offers a seamless development experience.