Overview
The Turborepo Tailwind Prisma Starter is a Turborepo monorepo starter that incorporates Tailwind CSS and Prisma. It also includes a type-safe shared environment variables feature. This repository provides a comprehensive starting point for building applications using these technologies.
Features
- Turborepo architecture for efficient development
- Integration of Tailwind CSS for easy and customizable styling
- Incorporation of Prisma for database ORM functionality
- Type-safe shared environment variables for consistent configuration
Installation
To install and set up the Turborepo Tailwind Prisma Starter, follow these steps:
- Ensure that Node.js 18+ and pnpm 8+ are installed on your system.
- Install Docker for your platform.
- Clone this repository and navigate to the project directory.
- Run
pnpm installto install the project dependencies. - Run
cp packages/env/.env.example packages/env/.env && ./dev-bootstrap.shto set up the environment variables. - Run
docker-compose upto start the Postgres database. - Open a new terminal tab and navigate to the
packages/database/directory. - Run
pnpm db:migrate:resetto set up the Prisma schema and database (only needs to be done once). - Return to the root directory of the project and run
turbo run devto start the development server. - Open your browser and visit
http://localhost:3000to access the web Next.js app, andhttp://localhost:3001for the docs Next.js app.
Summary
The Turborepo Tailwind Prisma Starter is a powerful starting point for building applications using Turborepo, Tailwind CSS, and Prisma. It provides a streamlined development process with features such as a monorepo structure, type-safe environment variables, and integration with popular tools like Docker and pnpm. With this starter, developers can quickly build robust and scalable applications with efficient code organization and a rich set of features.