A microservices-based sustainable travel platform built with MERN stack (MongoDB, Express.js, React, Node.js).
convidat/
├── services/
│ ├── auth-service/ # Authentication and user management
│ ├── travel-service/ # Travel booking and management
│ ├── carbon-service/ # Carbon footprint tracking
│ └── rewards-service/ # Gamification and rewards
└── frontend/ # React frontend application
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Clone the repository:
git clone https://github.com/R0h-a-a-n/Convidat
cd convidat
- Install dependencies:
For Auth Service:
cd services/auth-service
npm install
For Frontend:
cd frontend
npm install
- Set up environment variables:
Create .env
file in services/auth-service
:
MONGODB_URI=mongodb://127.0.0.1:27017/convidat-auth
JWT_SECRET=your-secret-key
PORT=3001
- Start MongoDB:
- Windows: Start MongoDB service
- Mac:
brew services start mongodb-community
- Start Auth Service:
cd services/auth-service
npm run dev
- Start Frontend:
cd frontend
npm start
The application will be available at:
- Frontend: http://localhost:3000
- Auth Service: http://localhost:3001
- User Authentication (Register/Login)
- JWT-based Authorization
- Protected Routes
- Modern UI with Material-UI
- Responsive Design
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request