A modern hotel management dashboard built with Next.js 15, HeroUI, and MongoDB. Features comprehensive cabin management, booking system, customer profiles, and business analytics.
- 📊 Dashboard: Real-time statistics, revenue charts, occupancy rates
- 🏠 Cabin Management: CRUD operations, filtering, capacity management
- 📅 Booking System: Reservation management, status tracking, payment processing
- 👥 Customer Profiles: Guest information, booking history, preferences
- ⚙️ Settings: Business rules, pricing, policies configuration
- 🌙 Dark Mode: Full theme support with smooth transitions
- 📱 Mobile Responsive: Optimized for all device sizes
- Frontend: Next.js 15 • HeroUI v2 • Tailwind CSS
- Backend: MongoDB • Mongoose ODM
- Tools: TypeScript • SWR • Recharts
- Node.js 18+ and pnpm
- MongoDB (Atlas or local installation)
# Clone the repository
git clone https://github.com/Amadou-dot/LodgeFlow_admin.git
cd LodgeFlow_admin
# Install dependencies
pnpm installMongoDB Atlas (Recommended)
- Create a free account at MongoDB Atlas
- Create a cluster and get your connection string
- Add to
.env.local:
MONGODB_URI=mongodb+srv://username:password@cluster.xxxxx.mongodb.net/lodgeflow
SEED_SECRET=replace-with-a-long-random-secretSEED_SECRET is required for /api/cron/seed. Call the route with
Authorization: Bearer <SEED_SECRET>.
Local MongoDB
- Install MongoDB Community Server
- Start the MongoDB service
- Use the default local configuration
# Test database connection
pnpm tsx scripts/test-connection.ts
# Seed with sample data
pnpm seed
# Start development server
pnpm devOpen http://localhost:3000 to view the dashboard.
app/
├── (auth)/ # Auth-protected routes
├── (dashboard)/ # Main dashboard routes
├── api/ # API routes
└── layout.tsx # Root layout
components/ # Reusable UI components
hooks/ # Custom React hooks
models/ # MongoDB schemas
types/ # TypeScript definitions
lib/ # Utilities & configurations
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.
Made by Amadou
