mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 12:19:38 +01:00
- Add @~/.claude/CLAUDE.md import for global engineering standards - Update Last Updated date to 2026-01-23 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.6 KiB
2.6 KiB
Commands Reference
All npm scripts available in the Botsmann project.
Quick Reference
| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Production build |
npm run start |
Start production server |
npm run lint |
Run ESLint |
npm run test |
Run tests |
Development
Start Dev Server
npm run dev
Starts Next.js development server on http://localhost:3000 with:
- Hot Module Replacement (HMR)
- Fast Refresh
- Error overlay
Run Linting
npm run lint
Runs ESLint to check for code quality issues.
Building
Production Build
npm run build
Creates optimized production build in .next/ directory.
CI Build
npm run build:ci
Runs npm ci (clean install) then builds. Used in CI pipelines.
Start Production Server
npm run start
Starts the production server. Requires npm run build first.
Testing
Run All Tests
npm run test
Runs Jest test suite once.
Watch Mode
npm run test:watch
Runs tests in watch mode - re-runs on file changes.
Common Workflows
Before Committing
npm run lint && npm run build
Ensures code passes linting and builds successfully.
Full Test Run
npm run lint && npm run test && npm run build
Complete verification before pushing.
Fresh Start
rm -rf node_modules .next
npm install
npm run dev
Clean reinstall and restart.
Environment Setup
First Time Setup
# Clone repository
git clone git@github.com:g-but/botsmann.git
cd botsmann
# Install dependencies
npm install
# Copy environment variables
cp .env.example .env
# Edit .env with your values
# Start development
npm run dev
Update Dependencies
npm update
Check for Vulnerabilities
npm audit
Fix Vulnerabilities
npm audit fix
Deployment
Manual Deploy to Vercel
# Install Vercel CLI if needed
npm i -g vercel
# Deploy to preview
vercel
# Deploy to production
vercel --prod
Automatic Deploy
Push to main branch - GitHub Actions handles deployment.
Troubleshooting
Port Already in Use
# Find process using port 3000
lsof -i :3000
# Kill it
kill -9 <PID>
Clear Next.js Cache
rm -rf .next
npm run dev
Reset Everything
rm -rf node_modules .next package-lock.json
npm install
npm run dev
Last Updated: 2026-01-07