Skip to content

Latest commit

 

History

History
115 lines (86 loc) · 2.92 KB

File metadata and controls

115 lines (86 loc) · 2.92 KB

Seemy - API Server

Description

Seemy is a platform that puts in contact people who has sports & luxury cars with those who want to rent them for a few days. Think about it as a 'Getaround' app, but only focused on high-end cars.

ROUTES:

MVP

Endpoints

Method Path Description Body
GET /cars list all cars
POST /cars add a car
GET /cars/:id get a car
PUT /cars/:id update a car
DELETE /cars/:id delete a car
GET /driver/:id see driver profile
PUT /driver/:id edit driver profile

Auth

Method Path Description Body
GET /whoami who am i
POST /signup signup a user { email, password }
POST /login login a user { email, password }
GET /logout logout session

Backlog

Method Path Description Body
GET /cars/:id/book book a car
POST /cars/:id/book book a car

Models

User model

{
	firstName: String,
	lastName: String,
	email: String,
	hashedPassword: String,
	profilePhoto: String,
	mobileNumber: Number,
}

Car model

{
	location: {
		streetAdress: String,
		city: String,
		province: String,
		postalCode: Number,
	}
	carSpecs: {
		year: Number,
		make: String,
		model: String,
		odometer: Number,
	}
	transmission: String;
	availability: {
		advanceNoticeHours: Number,
		maxDurationDays: Number,
	}
	image: String,
	description: String,
	licensePlate: String,
	dailyPrice: Number,
	owner: ObjectId<User>,
}

Review model

{
	carId: ObjectId<Car>,
	content: String,
	rating: Number,
	publisherId: ObjectId<User>,
}

Links

Trello

Seemy Trello

Git

Github Repo - Server API

Github Repo - React Client

Deploy

Heroku Backend

See the App Live on Netlify!

Slides

Slides Link