Posts

Showing posts from March, 2021

MongoDB shell version v4.4.4 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: No connection could be made because the target machine actively refused it. : connect@src/mongo/shell/mongo.js:374:17 @(connect):2:6 exception: connect failed exiting with code 1

 Solution for windows :  The solution that worked for me is: Opened the  Task Manager  ( ctrl + shift + esc ) ->  Services  tab and  there was a MongoDB row  with the  status stopped . Then I  right-clicked and clicked start  and everything worked perfectly  😀 https://stackoverflow.com/a/53635485/6393408

First Backend Website

Image
 Today I built a website that shows the current temperature of any location using Express Node.js. This is the first complete website that I understood mostly each and every portion of the code except some of the CSS code. Took many hours to write this code and of course, took breaks in between writing codes. And the website looks like as shown in the figure below: