Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

create new application using mangoose.(note: if you send me github link for this

ID: 3827691 • Letter: C

Question

create new application using mangoose.(note: if you send me github link for this apps i will appreciate.)

Your user is a runner. Your user only likes to run around lakes. Create an application to record all of the run times for various lakes.

Create a Lake schema. What data will it store? How should this data be validated?

Your user should be able to add a lake to the database.

Every time the user goes for a run around a lake, they would like to add the time taken to run around this lake, and the date.

You should have a page that displays all of the lakes

You should be able to show all of the times recorded for one lake.

This could be all on one page,

or you could create a page for each lake, which will display all of the times recorded for that lake.

Display all of the times in order; fastest first.

Include server side and client side validation.

Explanation / Answer

app.js

post.js

thread.js

module.exports = mongoose.model('Thread', threadSchema);

var Thread = require('../models/thread.js');