Skip to content

Eval submission#147

Open
etiry wants to merge 36 commits into
projectshft:masterfrom
etiry:master
Open

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

Conversation

@etiry

@etiry etiry commented Sep 16, 2023

Copy link
Copy Markdown

No description provided.

Comment thread server.js
const mainRoutes = require('./routes/main');

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

Copy link
Copy Markdown

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

Comment thread utils/utils.js
const Product = require('../models/product');

/**
* Retrieve products from database given search parameters

Copy link
Copy Markdown

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