Hi,
I have a basic web post app in Node.js (Mongoose - MondoDB - Express)
I need to show all posts sorted in a specific order ( last updated). Please write the code in [login to view URL] in the index route.
// MONGOOSE/MODEL CONFIG Web-Blog
var blogSchema = new [login to view URL]({
title: String,
body: String,
created: {type: Date, default: [login to view URL]},
updated_at: Date
});
var Blog = [login to view URL]("Blog", blogSchema);
// INDEX Web-Blog
[login to view URL]("/blogs", function(req, res){
[login to view URL]({},function(err, blogs)
Hello,
Seems like a very simple fix based on your description.
Hit me over chat if you are interested to this resolved at the proposed bid cost.
Mateen
$20 USD trong 1 ngày
5,0 (21 nhận xét)
5,0
5,0
4 freelancer chào giá trung bình $25 USD cho công việc này
Hello, I have worked with Mongoose - MongoDB - Express recently for my school projects so I believe I can complete your task quickly. I was wondering if there is a way to test the app since I didn't see a README file saying how to run the app.