Getting ERRORS while running a web design project in Localhost

Hello Team MongoDB
Ritesh is here, students of engineering and currently learning web development and practicing on some projects. Right now I’m working in a project and there I got error when reviewed the project in local server. There a file attached in which I’m getting error to connecting the mongodb with my project. Please explain the thing what to do for correcting it.

Thank you.