Skip to content
/ template Public template

Minimally opinionated, highly flexible, fullstack monorepo.

License

Notifications You must be signed in to change notification settings

aliofye/template

Repository files navigation

CI Pipeline CodeQL

React React Router Vite Bun Docker

React19 + React Router7 + Vite + Bun + Docker = ❤️

>_ Out there, it’s so breathtaking, isn’t it?

Quick Start

Prerequisites

Install Docker Desktop

Install Bun

Install VSCode

Install VSCode Eslint Extension

Install VSCode Stylelint Extension

Install dependencies

bun install

Compile for typegen

bun run compile

Install git hooks

bunx lefthook install

Run container

# You can run the app in dev or prod mode
docker compose --profile ${dev|prod} up --watch
# 99% you will be running this
docker compose --profile dev up --watch
# Works on your machine? Doesn't work on prod? This is your command
docker compose --profile prod up --watch

Generate your first migration

docker compose exec dev bun run db:generate 

Migrate your db

docker compose exec dev bun run db:migrate

Seed your db

docker compose exec dev bun run db:seed

Database helpers

Generate database migration

docker compose exec dev bun run db:generate 

Run database migration

docker compose exec dev bun run db:migrate

Running Tests

Run api+web tests

docker compose exec dev bun run test

Run api tests only

docker compose exec -w /app/packages/api dev bun run test --watch

Run web tests only

docker compose exec -w /app/packages/web dev bun run test --watch

Check test coverage

docker compose exec dev bun run coverage

Linting

Lint everything

docker compose exec dev bun run lint

About

Minimally opinionated, highly flexible, fullstack monorepo.

Topics

Resources

License

Stars

Watchers

Forks