A modern, full-featured web application built with Next.js, featuring user authentication, a beautiful dashboard, and comprehensive business pages.
- ✅ User Registration with validation
- ✅ Secure Login with bcrypt password hashing
- ✅ Professional authentication forms with loading states
- ✅ Form validation and error handling
- 🏠 Home Page - Beautiful landing page with hero section and features preview
- ⚡ Features Page - Detailed feature showcase with interactive cards
- 💰 Pricing Page - Comprehensive pricing plans with annual/monthly toggle
- 📞 Contact Page - Professional contact form with company information
- 📊 Dashboard - Full-featured user dashboard with multiple sections
- Overview with statistics and recent activity
- Projects management with progress tracking
- Analytics and performance metrics
- Team management interface
- Account settings and profile management
- 🎨 Modern UI with Tailwind CSS
- 📱 Fully responsive design
- 🌟 Smooth animations and transitions
- 🔒 Secure MongoDB integration
- ⚡ Fast performance with Next.js 14
- 🎯 TypeScript for type safety
- Frontend: Next.js 14, React, TypeScript
- Styling: Tailwind CSS
- Database: MongoDB
- Authentication: bcrypt for password hashing
- Icons: Unicode emojis and SVG icons
- Node.js 18+ installed
- MongoDB running locally or MongoDB Atlas account
npm installCreate a .env.local file in the root directory:
# For local MongoDB (default)
MONGODB_URI=mongodb://localhost:27017/login-project
# Or for MongoDB Atlas (replace with your credentials)# MONGODB_URI=mongodb+srv://your-username:your-password@your-cluster.mongodb.net/your-database?retryWrites=true&w=majority# Start MongoDB service
mongod --dbpath "C:\data\db"node seed.jsThis creates a demo user:
- Email: demo@techflow.com
- Password: password123
npm run devVisit http://localhost:3000 to see the application.
/- Home page with company overview/features- Detailed feature information/pricing- Pricing plans and billing options/contact- Contact form and company details/login- User login form/register- User registration form
/dashboard- Main user dashboard (requires login)
- Browse the website - Visit all public pages to see the complete business website
- Register a new account - Use the registration form with valid information
- Login with demo account - Use demo@techflow.com / password123
- Explore the dashboard - Check different tabs and features
- Test responsiveness - View on different screen sizes
- User visits the website and clicks "Get Started"
- User fills out registration form with validation
- Account is created with hashed password in MongoDB
- User logs in with credentials
- Successful login redirects to dashboard
- Dashboard provides full app functionality
app/
├── page.tsx # Home page
├── login/page.tsx # Login form
├── register/page.tsx # Registration form ├── features/page.tsx # Features showcase
├── pricing/page.tsx # Pricing plans
├── contact/page.tsx # Contact form
├── dashboard/page.tsx # User dashboard
├── api/
│ └── auth/
│ ├── login/route.ts # Login API endpoint
│ └── register/route.ts # Registration API endpoint
├── utils/
│ └── mongodb.ts # Database connection
├── globals.css # Global styles
└── layout.tsx # App layout
- Modify
tailwind.config.jsfor theme customization - Update
globals.cssfor custom animations - Edit component styles directly in TSX files
- Update MongoDB connection in
app/utils/mongodb.ts - Modify user schema in registration API
- Add new collections as needed
- Add new pages in the
app/directory - Create new API endpoints in
app/api/ - Extend dashboard functionality
- Push code to GitHub
- Connect repository to Vercel
- Add environment variables
- Deploy automatically
- Compatible with any Node.js hosting
- Requires MongoDB database access
- Set environment variables accordingly
- ✅ Home page with modern design
- ✅ Features page with detailed information
- ✅ Pricing page with plan comparison
- ✅ Contact page with form functionality
- ✅ User registration with validation
- ✅ Secure user login
- ✅ Protected dashboard with multiple sections
- ✅ MongoDB integration
- ✅ Responsive design
- ✅ Loading states and error handling
- ✅ Professional UI/UX
- ✅ Type safety with TypeScript
Feel free to fork this project and submit pull requests for improvements.
This project is open source and available under the MIT License.