URide is a backend service that provides APIs for user management and ride matching functionality. This Node.js application is built with Express.js and MongoDB.
- User management system
- Ride matching functionality
- Geolocation-based services
- RESTful API architecture
- Node.js (v14 or higher)
- MongoDB
- npm or yarn package manager
- Clone the repository:
git clone <repository-url>
cd uridebackend- Install dependencies:
npm install- Create a
.envfile in the root directory with the following variables:
PORT=5000
MONGO_URI=your_mongodb_connection_string
npm run devnpm startThe server will start running on the specified port (default: 5000).
- User registration and authentication
- User profile management
- User preferences
- Ride matching functionality
- Location-based matching
- Match preferences
uridebackend/
├── controllers/ # Business logic
├── models/ # Database models
├── routes/ # API routes
├── utils/ # Utility functions
├── index.js # Application entry point
├── seed.js # Database seeding script
└── package.json # Project dependencies
- express: Web framework
- mongoose: MongoDB object modeling
- cors: Cross-origin resource sharing
- dotenv: Environment variable management
- geolib: Geolocation utilities
- nodemon: Development server with auto-reload
ISC
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request