Nest is a prograssive Node.js framework with TypeScript for building efficient and scalable server-side/backend applications.
Ride Sharing application backend with Node.js framework. available features are add user, offer ride, find ride, rest wip...
- Node.js, NestJs
- Typescript
- MongoDB
- Mongoose
- Rest client
- git
- Users
- Ride offers
- Report
- src
- users # User Entity implementation
- dto # Data Transfer Object
- schemas # Entity schema
- offer-ride # Offer-ride Entity implementation
- dto
- schemas
- report # Report Entity implementation
- dto
- schemas
- rest-client-test.http # api request test example
$ npm install -g @nestjs/cli
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
POST http://localhost:3000/users/addUser
Content-Type: application/json
{
"username": "Rohan",
"gender": "M",
"age": 36
}
GET http://localhost:3000/users
POST http://localhost:3000/users/addUserVehicle
Content-Type: application/json
{
"username": "Rohan",
"vehicle_brand": "Swift",
"vehicle_number": "KA-01-12345"
}
POST http://localhost:3000/offer-ride/offerRide
Content-Type: application/json
{
"username": "Rohan",
"origin": "Hyderabad",
"available_seats": 1,
"vehicle": "Swift, KA-01-12345",
"destination": "Bangalore"
}
POST http://localhost:3000/offer-ride/findRide
Content-Type: application/json
{
"username": "Rohan",
"origin": "Hyderabad",
"seats": 1,
"preferred_vehicle": "Swift",
"destination": "Bangalore"
}
POST http://localhost:3000/offer-ride/endRide
Content-Type: application/json
{
"username": "Gaurav",
"origin": "Bangalore",
"destination": "Mysore",
"vehicle": "Activa KA-12-12332"
}