Skip to content
/ node-and-vite-react Public template

Monorepo with Turbo. node, vite + react. Deploy to AWS (Lambda, S3)

Notifications You must be signed in to change notification settings

sya-ri/node-and-vite-react

Repository files navigation

Node and Vite React Monorepo

A monorepo setup using Turbo.

Projects

Apps

Packages

  • database: Database schema, migrations, and database operations.
  • model: Defines application data models.
  • openapi: Provides API documentation using OpenAPI specifications.
  • runtime-config: Frontend runtime configuration.
  • typescript-config: Shared TypeScript configuration files.
  • ui: Shared component library for frontend.

Installation

To set up the project for development:

./scripts/setup.sh

Commands

Git Commit

Use the following command to commit your changes:

npm run commit

Build

To build the entire project:

npm run build

Development Server

To start the development server:

npm run dev

Check Code Quality

To run code quality checks:

npm run check

Fix Code Issues

To fix any code issues automatically:

npm run fix

Check Dependency Versions

To check for new versions of dependencies using npm-check-updates:

npm run ncu

Bump Dependency Versions

To upgrade dependencies to their latest versions using npm-check-updates:

npm run ncu:apply

Build Storybook

To build the Storybook:

npm run build-storybook

Open Storybook

To open the storybook:

npm run storybook

Launch Database

To start the PostgreSQL database using Docker Compose:

docker compose up -d

Migrate Database

To migrate the database in a development environment:

npm run migrate:dev -w packages/database