Skip to content

Eval submission#147

Open
etiry wants to merge 36 commits intoprojectshft:masterfrom
etiry:master
Open

Eval submission#147
etiry wants to merge 36 commits intoprojectshft:masterfrom
etiry:master

Conversation

@etiry
Copy link

@etiry etiry commented Sep 16, 2023

No description provided.

const mainRoutes = require('./routes/main');

// connect to db
mongoose.connect('mongodb://localhost/products', {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In newer version of node localhost needs to be changed to 127.0.0.1 for it to work properly https://www.mongodb.com/community/forums/t/mongooseserverselectionerror-connect-econnrefused-127-0-0-1-27017/123421/9

const Product = require('../models/product');

/**
* Retrieve products from database given search parameters
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice comments!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants