A modern construction materials marketplace for Mauritius built with Next.js 14, TypeScript, and MongoDB.
- 🏗️ Product catalog with categories
- 🏪 Store listings and profiles
- 🔧 Service provider directory
- 🛒 Shopping cart functionality
- 🔍 Advanced search and filters
- 📱 Mobile-responsive design
- 🌍 Multi-language support (English, French, Creole)
- Frontend: Next.js 14 (App Router) + TypeScript
- Styling: Tailwind CSS + shadcn/ui
- Backend: Next.js API Routes
- Database: MongoDB with Mongoose
- Auth: NextAuth.js
- Animations: Framer Motion
- i18n: next-intl
- Node.js 18+
- MongoDB database (local or Atlas)
- Clone the repository
- Install dependencies:
npm install- Create a
.env.localfile in the root directory:
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_secret_key_here- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
├── app/ # Next.js app router pages
├── components/ # React components
│ ├── home/ # Homepage components
│ ├── products/ # Product-related components
│ ├── layout/ # Layout components
│ └── ui/ # shadcn/ui components
├── lib/ # Utility functions
├── models/ # Mongoose models
└── public/ # Static assets
- User
- Store
- Product
- Category
- Service
- Order
- Review
- Cart
- Favorite
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
MIT