Development Server:
- URL: http://localhost:3000 (default Next.js port)
- Command:
npm run dev
Docker Production:
- URL: http://localhost:3000
- Command:
docker-compose up -d
Navigate to http://localhost:3000 in your browser
- Dashboard - View your weekly progress
- Daily Check-In - Mark today's completed goals
- Goals - Manage your goals and categories
- History - Calendar view of past completions
- Analytics - Track your streaks and achievements
- Settings - Configure preferences and export data
The app comes with:
- ✅ 3 sample goals (Gym, Reading, Meditation)
- ✅ 4 categories (Health, Work, Personal, Social)
- ✅ Ready to use database
# Start dev server
npm run dev
# Build for production
npm run build# Start container
docker-compose up -d
# Stop container
docker-compose down
# View logs
docker-compose logs -f
# Rebuild image
docker-compose build
# Restart container
docker-compose restart# Reset database with sample data
npm run initialize
# Backup database
cp data/goals.db data/goals-backup.db
# View database (install sqlite3)
sqlite3 data/goals.db| Feature | Status | Description |
|---|---|---|
| Dashboard | ✅ | Weekly progress overview |
| Daily Check-In | ✅ | Mark goals complete |
| Goals Management | ✅ | CRUD operations |
| History Calendar | ✅ | Past completions view |
| Analytics | ✅ | Streaks & achievements |
| Settings | ✅ | Preferences & export |
| API Endpoints | ✅ | 15+ RESTful routes |
| Database | ✅ | SQLite with sample data |
| Docker | ✅ | Production container |
| Responsive Design | ✅ | Mobile & desktop |
If you get EADDRINUSE error:
# Find process using the port
netstat -ano | findstr :3000
# Or use a different port
npm run dev -- -p 3002# Stop all containers
docker-compose down
# Remove and rebuild
docker-compose down
docker-compose build --no-cache
docker-compose up -d# Reset database
npm run initialize
# Or delete and recreate
rm data/goals.db
npm run initialize| File | Purpose |
|---|---|
data/goals.db |
Your database (auto-created) |
docker-compose.yml |
Docker configuration |
Dockerfile |
Container build instructions |
package.json |
Dependencies & scripts |
README.md |
Full documentation |
DEPLOYMENT_GUIDE.md |
Detailed deployment info |
-
Add More Goals
- Go to Goals page
- Click "Add Goal"
- Set name, target frequency, category, color
-
Create Custom Categories
- Create via API:
POST /api/categories - Or add to database initialization script
- Create via API:
-
Change Colors
- Edit
tailwind.config.ts - Modify goal colors in UI
- Edit
-
Export Your Data
- Settings page → Export Data
- Downloads JSON with all data
- Morning: Open dashboard to see weekly progress
- Throughout Day: Complete your goals
- Evening: Open Check-In page, mark completed goals
- Weekly: Review Analytics for streaks
- ✅ Set realistic targets (start with 3x/week)
- ✅ Check in daily for accurate tracking
- ✅ Celebrate streaks and achievements
- ✅ Export data regularly for backup
- ✅ Adjust goals as needed
⚠️ Using standard Next.js port 3000 for both dev and production⚠️ Some lockfile warnings during build (non-critical)- ✅ All features working correctly
If you encounter issues:
- Check terminal logs for errors
- Verify database exists:
ls data/ - Check Docker logs:
docker-compose logs - Restart services:
docker-compose restart
Your Weekly Goal Tracker includes:
- ✅ 6 Pages - All functional and responsive
- ✅ 15+ API Routes - RESTful backend
- ✅ 10+ Components - Reusable UI library
- ✅ SQLite Database - With sample data
- ✅ Docker Ready - Production deployment
- ✅ TypeScript - Full type safety
- ✅ ~3,500 Lines - Production-ready code
Development: Open http://localhost:3000 Production: Open http://localhost:3000
Start tracking your goals and building better habits! 🎯
Built: December 31, 2025 Version: 1.0.0 Status: Production Ready ✅