Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sya-ri/node-and-vite-react
Monorepo with Turbo. node, vite + react. Deploy to AWS (Lambda, S3)
https://github.com/sya-ri/node-and-vite-react
aws aws-lambda aws-s3 biome biomejs commitlint lambda-nodejs monorepo node nodejs react storybook storybookjs turbo turborepo typescript vite vite-react vitejs vitejs-react
Last synced: 4 months ago
JSON representation
Monorepo with Turbo. node, vite + react. Deploy to AWS (Lambda, S3)
- Host: GitHub
- URL: https://github.com/sya-ri/node-and-vite-react
- Owner: sya-ri
- Created: 2024-05-21T05:19:16.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-23T08:26:37.000Z (7 months ago)
- Last Synced: 2024-07-23T10:27:02.064Z (7 months ago)
- Topics: aws, aws-lambda, aws-s3, biome, biomejs, commitlint, lambda-nodejs, monorepo, node, nodejs, react, storybook, storybookjs, turbo, turborepo, typescript, vite, vite-react, vitejs, vitejs-react
- Language: TypeScript
- Homepage:
- Size: 1.52 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.config.js
Awesome Lists containing this project
README
# Node and Vite React Monorepo
A monorepo setup using [Turbo](https://turbo.build).
## Projects
### Apps
- [backend](apps/backend): Built with [Hono](https://hono.dev) and deployed on AWS Lambda.
- [frontend](apps/frontend): Built with [Vite](https://vitejs.dev) and React.
- [deploy](apps/deploy): Deploys to AWS using [AWS CDK](https://github.com/aws/aws-cdk).### Packages
- [database](packages/database): Database schema, migrations, and database operations.
- [model](packages/model): Defines application data models.
- [openapi](packages/openapi): Provides API documentation using OpenAPI specifications.
- [runtime-config](packages/runtime-config): Frontend runtime configuration.
- [typescript-config](packages/typescript-config): Shared TypeScript configuration files.
- [ui](packages/ui): Shared component library for frontend.## Installation
To set up the project for development:
```shell
./scripts/setup.sh
```## Commands
### Git Commit
Use the following command to commit your changes:
```shell
npm run commit
```### Build
To build the entire project:
```shell
npm run build
```### Development Server
To start the development server:
```shell
npm run dev
```### Check Code Quality
To run code quality checks:
```shell
npm run check
```### Fix Code Issues
To fix any code issues automatically:
```shell
npm run fix
```### Check Dependency Versions
To check for new versions of dependencies using `npm-check-updates`:
```shell
npm run ncu
```### Bump Dependency Versions
To upgrade dependencies to their latest versions using `npm-check-updates`:
```shell
npm run ncu:apply
```### Build Storybook
To build the Storybook:
```shell
npm run build-storybook
```### Open Storybook
To open the storybook:
```shell
npm run storybook
```### Launch Database
To start the PostgreSQL database using Docker Compose:
```shell
docker compose up -d
```### Migrate Database
To migrate the database in a development environment:
```shell
npm run migrate:dev -w packages/database
```