Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noahflk/react-trpc-turbo
Boilerplate using a Turbo Monorepo with a React Vite frontend, Express.js Node backend connected by tRPC
https://github.com/noahflk/react-trpc-turbo
express nodejs pnpm react turborepo typescript
Last synced: about 2 months ago
JSON representation
Boilerplate using a Turbo Monorepo with a React Vite frontend, Express.js Node backend connected by tRPC
- Host: GitHub
- URL: https://github.com/noahflk/react-trpc-turbo
- Owner: noahflk
- License: mit
- Created: 2024-04-27T18:16:26.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T17:30:23.000Z (5 months ago)
- Last Synced: 2024-10-12T02:28:50.386Z (2 months ago)
- Topics: express, nodejs, pnpm, react, turborepo, typescript
- Language: TypeScript
- Homepage:
- Size: 144 KB
- Stars: 26
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-trpc-turbo
## Technologies used
- Turborepo
- React Vite
- Express.js
- tRPC
- TanStack Router
- Tailwind CSS### Apps and Packages
- `@repo/web`: Vite, React, TanStack Router and tRPC Client
- `@repo/api`: Express.js, Drizzle and tRPC Server
- `@repo/eslint-config`: `eslint` configurations
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo
- `@repo/tailwind-config`: shared Tailwind configurationEach package/app is 100% [TypeScript](https://www.typescriptlang.org/).
### Utilities
This Turborepo has some additional tools already setup for you:
- [TypeScript](https://www.typescriptlang.org/) for static type checking
- [ESLint](https://eslint.org/) for code linting
- [Prettier](https://prettier.io) for code formatting## Setup
To get started, clone the repository and install the dependencies:
```
pnpm install
```Then, copy the `.env.example` file to `.env` in the web/ folder and fill in the necessary environment variables. For local development, the defaul value will work. If you want to deploy the app, you will need to specify where the backend is hosted.
```
cp ./apps/web/.env.example ./apps/web/.env
```### Build
To build all apps and packages, run the following command:
```
pnpm build
```### Develop
To run all apps and packages in development mode, run the following command:
```
pnpm dev
```