Get LifeQuest up and running in 5 minutes! 🚀
Before you begin, ensure you have:
- ✅ Node.js 18+ installed (Download)
- ✅ PostgreSQL 14+ installed (Download)
- ✅ Git installed (Download)
- ✅ A code editor (VS Code recommended)
git clone https://github.com/yourusername/lifequest.git
cd lifequestnpm installThis will install dependencies for all workspaces (frontend, backend, mobile, shared).
cp .env.example .envEdit .env and update the following:
# Database
DATABASE_URL=postgresql://postgres:password@localhost:5432/lifequest
# JWT Secret (generate a random string)
JWT_SECRET=your-super-secret-key-here
# Firebase (optional for now)
# You can skip Firebase configuration for local development# Create database and run migrations
npm run db:setup
# (Optional) Seed with sample data
npm run db:seednpm run devThis starts both frontend and backend servers:
- 🌐 Frontend: http://localhost:3001
- 🔌 Backend API: http://localhost:3000
# Register a new user
curl -X POST http://localhost:3000/api/auth/register \
-H "Content-Type: application/json" \
-d '{
"email": "test@example.com",
"password": "SecurePass123!",
"name": "Test User"
}'- Open http://localhost:3001 in your browser
- Register a new account
- Start creating goals and tasks!
# Start the mobile app
npm run dev:mobile
# For Android
npm run android
# For iOS (macOS only)
npm run ios# Development
npm run dev # Start all dev servers
npm run dev:frontend # Start only frontend
npm run dev:backend # Start only backend
npm run dev:mobile # Start mobile app
# Testing
npm test # Run all tests
npm run test:coverage # Run tests with coverage
# Linting & Formatting
npm run lint # Lint all code
npm run lint:fix # Fix linting issues
npm run format # Format code with Prettier
# Database
npm run db:migrate # Run migrations
npm run db:seed # Seed database
npm run db:reset # Reset databaselifequest/
├── frontend/ # Next.js web dashboard
│ ├── src/
│ │ ├── app/ # Next.js 14 app directory
│ │ ├── components/
│ │ └── lib/
│ └── package.json
│
├── backend/ # Node.js Express API
│ ├── src/
│ │ ├── controllers/
│ │ ├── models/
│ │ ├── routes/
│ │ └── services/
│ └── package.json
│
├── mobile/ # React Native app
│ ├── src/
│ ├── android/
│ └── ios/
│
└── shared/ # Shared types & utilities
├── types/
└── constants/
# Check if PostgreSQL is running
psql --version
# Create database manually if needed
createdb lifequest
# Check connection
psql -U postgres -d lifequest# Kill process on port 3000
lsof -ti:3000 | xargs kill -9
# Or change port in .env
PORT=3001# Clean install
npm run clean
npm install- 📖 Read the full documentation
- 🏗️ Explore the architecture
- 🔌 Check out the API documentation
- 🤝 Learn how to contribute
- 💬 Discord Community
- 🐛 Report Issues
- 📧 Email: support@lifequest.app
Happy coding! Level up your productivity! 🎮✨