Skip to content

A template which uses React/vite in the frontend, express/graphql/apollo/prisma in the backend with turborepo as monorepo solution

Notifications You must be signed in to change notification settings

ofarukaydin/turborepo-react-vite-prisma-template

Repository files navigation

What's inside?

This is a monorepo -turborepo to be exact- uses pnpm as a package manager. It includes the following packages/apps:

Apps and Packages

  • backend: an express app

  • frontend:a vite/react app

  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)

  • tsconfig: tsconfig.jsons used throughout the monorepo

  • Frontend port: 3000

  • Backend port :3001

Develop

Install dependencies

pnpm install

Generate prisma client

pnpm migrate:dev

Run all apps in dev mode

pnpm dev

If you want to develop all apps and packages inside a docker container instead, run the following command:

docker-compose up -d

From there you can use vscode remote extension to connent to the container.

Build

To build all apps and packages, run the following command:

pnpm build

About

A template which uses React/vite in the frontend, express/graphql/apollo/prisma in the backend with turborepo as monorepo solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published