A modern, responsive admin console built with Next.js 16, TypeScript, and Tailwind CSS for managing the tCredex platform.
- Secure login page with form validation
- Session management
- Protected admin routes
- Key performance metrics (Users, Transactions, Revenue)
- Real-time activity feed
- Growth indicators and analytics
- Complete user listing with search
- Filter by user status (Active/Inactive)
- User role management
- Quick actions (Edit, Activate/Deactivate, Delete)
- General configuration (Site Name, Admin Email)
- Security settings (2FA, Login Attempts, Session Timeout)
- Notification preferences
- System maintenance mode
- Fully responsive design
- Mobile-friendly navigation
- Clean, professional interface
- Tailwind CSS styling
- Framework: Next.js 16 (App Router)
- Language: TypeScript 5
- Styling: Tailwind CSS 4
- UI Library: React 19
- Build Tool: Turbopack
- Node.js 18+ installed
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/mikequalizza-tech/mosaic-next.git
cd mosaic-next- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
- Username:
admin - Password:
admin123
npm run dev- Start development servernpm run build- Build for productionnpm start- Start production servernpm run lint- Run ESLint
mosaic-next/
├── app/
│ ├── admin/
│ │ ├── dashboard/ # Dashboard page
│ │ ├── users/ # User management
│ │ ├── settings/ # Settings page
│ │ └── layout.tsx # Admin layout with navigation
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout
│ └── page.tsx # Login page
├── next.config.js # Next.js configuration
├── tailwind.config.js # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
└── package.json # Project dependencies
The current implementation uses localStorage for session management. In production, this should be replaced with secure token-based authentication (JWT, OAuth, etc.).
The demo uses static data. Replace with actual API calls to your backend:
- User management endpoints
- Dashboard metrics API
- Settings configuration API
Create a .env.local file for environment-specific configuration:
NEXT_PUBLIC_API_URL=your_api_url
npm run build
npm startThe application will be optimized and ready for deployment.
Deploy to Vercel, Netlify, or any hosting platform that supports Next.js:
- Fork the repository
- Create a 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
ISC
For issues or questions, please open an issue in the GitHub repository.