1.7 KiB
1.7 KiB
Suggested Commands for Quixotic Development
Development Commands
yarn install- Install project dependenciesyarn dev- Start development server with nodemon (auto-restart)yarn start- Start production server
System Requirements
- FFmpeg Installation:
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt install ffmpeg - Windows: Download from ffmpeg.org
- macOS:
Environment Setup
cp .env.example .env- Create environment configuration file- Edit
.envfile with required values:TELEGRAM_BOT_TOKEN=your_bot_token_hereWEB_APP_URL=https://your-domain.comPORT=3000
Git Commands (Darwin System)
git status- Check repository statusgit add .- Stage all changesgit commit -m "message"- Commit changesgit push- Push to remote repository
File System Commands (macOS/Darwin)
ls -la- List files with detailsfind . -name "*.js"- Find JavaScript filesgrep -r "text" .- Search for text in filescd directory- Change directorymkdir directory- Create directoryrm -rf directory- Remove directory recursively
Database Management
- SQLite database files are in
database/directory - No dedicated database management commands configured
- Database is automatically initialized on first run
Process Management (Production)
pm2 start src/server.js --name quixotic- Start with PM2pm2 logs quixotic- View logspm2 restart quixotic- Restart applicationpm2 stop quixotic- Stop application
Health Check
- Visit
http://localhost:3000/health- Check if server is running - Check server logs for errors
Port Information
- Default port: 3000 (configurable via PORT environment variable)
- Development server runs on same port as production