refactor: simplify to independent multi-project structure
Removed npm workspace configuration in favor of simple multi-project repository. Each project (web-app, housekeeping) is now completely self-contained. ## Changes - Removed root package.json and package-lock.json - Added VS Code workspace file for better project organization - Updated documentation to reflect independent project structure - Each project manages its own dependencies without workspace linking ## Structure - web-app/: Self-contained Next.js application - housekeeping/: Self-contained DB maintenance scripts - No workspace management or dependency sharing - Monorepo is purely for Git organization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
29
CLAUDE.md
29
CLAUDE.md
@@ -2,31 +2,30 @@
|
||||
|
||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||
|
||||
## Monorepo Structure
|
||||
## Repository Structure
|
||||
|
||||
This is a monorepo with the following workspaces:
|
||||
- **web-app**: Next.js 14 utility bills tracking application
|
||||
- **housekeeping**: Database backup and maintenance scripts
|
||||
This is a multi-project repository containing:
|
||||
- **web-app/**: Next.js 14 utility bills tracking application
|
||||
- **housekeeping/**: Database backup and maintenance scripts
|
||||
|
||||
Each project is self-contained with its own dependencies.
|
||||
|
||||
## Development Commands
|
||||
|
||||
From the monorepo root:
|
||||
- `npm run dev` - Start development server (runs web-app workspace)
|
||||
- `npm run build` - Build production version (builds web-app workspace)
|
||||
- `npm start` - Start production server (runs web-app workspace)
|
||||
- `npm run prettier` - Format code with Prettier (entire monorepo)
|
||||
- `npm run prettier:check` - Check code formatting (entire monorepo)
|
||||
All commands should be run from within the respective project directory.
|
||||
|
||||
From the web-app workspace (`cd web-app`):
|
||||
**Web App** (`cd web-app`):
|
||||
- `npm install` - Install dependencies
|
||||
- `npm run dev` - Start development server
|
||||
- `npm run build` - Build production version
|
||||
- `npm start` - Start production server
|
||||
- `npm run prettier` - Format code
|
||||
- `npm run seed` - Seed database with initial data
|
||||
|
||||
From the housekeeping workspace (`cd housekeeping`):
|
||||
- `npm run backup:standalone` - Run standalone database backup
|
||||
- `npm run backup:swarm` - Run swarm database backup
|
||||
- `npm run dump:standalone` - Run standalone database dump
|
||||
**Housekeeping** (`cd housekeeping`):
|
||||
- `./db-backup--standalone.sh` - Run standalone database backup
|
||||
- `./db-backup--swarm.sh` - Run swarm database backup
|
||||
- `./db-dump--standalone.sh` - Run standalone database dump
|
||||
- See housekeeping/README.md for more details
|
||||
|
||||
## Deployment Commands
|
||||
|
||||
Reference in New Issue
Block a user