node.js Archives – Opensite - Digital Solutions Agency

0422 374 731


Create a Node.js Website


Tutorials ,

Create the project folder using the CLI. Initialise the project (wizard for building package.json). Create app file (the primary application) Install Express Note: Require Express by adding this to app.js Test Express by adding this to app.js Run Then navigate to localhost:3000 in your browser. You should see “Cannot GET /”. This means our application […]

Add MongoDB to a Node Application


Tutorials , ,

We’ll use the mongooseJS Node package to work with MongoDB. Connect to a database, it doesn’t even need to exist yet. In this example db_name will be created.