2.6 KiB
2.6 KiB
🚀 Secure Proxy - Installation Fixes Applied
✅ What Was Fixed
Your installation error has been resolved:
Error: SQLITE_CANTOPEN: unable to open database file
Solution: The database directory is now automatically created.
🎯 Quick Start (3 Commands)
npm install
npm run init-db
npm run dev
Done! Open: http://localhost:3000
📋 Detailed Steps
1. Install Dependencies
npm install
Expected output:
added 274 packages
2. Initialize Database
npm run init-db
Expected output:
🚀 Initializing database...
✓ Created directory: ./db
✓ Database initialized successfully!
✓ Database location: ./db/services.db
3. Start Server
npm run dev
Expected output:
[timestamp] [INFO] Server running on port 3000
4. Open in Browser
http://localhost:3000
🔑 Admin Credentials
Email: admin@example.com
Password: changeme
Change these in .env if needed.
📝 Useful Commands
| Command | What it does |
|---|---|
npm run dev |
Start server (auto-reload) |
npm start |
Start server (production) |
npm run init-db |
Initialize database |
npm run seed-db |
Load sample data |
bash verify.sh |
Check setup |
bash test.sh |
Run full test suite |
🧪 Verify Installation
bash verify.sh
This checks if everything is set up correctly.
🔍 What Was Changed
- Database initialization - Now creates
db/directory automatically - Session management -
sessions/directory auto-created - Default .env - Configuration file provided
- Setup scripts -
setup.shfor automated setup - Verification -
verify.shto check installation
📚 Documentation
- This file - Quick start guide
00-START-HERE.md- Project overviewQUICKSTART.md- Reference guideREADME.md- Full documentationFIXES-APPLIED.md- Technical details of fixes
❌ If Something Still Doesn't Work
Clean Reset
rm -rf db/ sessions/ node_modules/
npm install
npm run init-db
npm run dev
Port 3000 Already in Use?
Edit .env:
PORT=3001
Then restart: npm run dev
Need Database Reset?
rm db/services.db
npm run init-db
Check Everything
bash test.sh
🎉 Success!
If you see:
🚀 Initializing database...
✓ Database initialized successfully!
Everything is working! 🎊
Open http://localhost:3000 and enjoy!
Questions? Check the documentation files or run bash test.sh