Writing a CRUD app with Node.js and MongoDB

Eslam Shoaala
codeburst

--

Since you are here, I will assume you know the following:

1- A bit of JavaSript. (If not, you can have a look over the introductory JS guide from Mozilla )

2- Heard of Node.js and curious about seeing it in action.

Basics:-

CRUD Operations:

CRUD stands for Create, Read, Update and Delete. Which are the basic operations that a simple web app would be designed to achieve.

REST:

If you didn’t hear about REST before, you can read more about it here.

In this tutorial, we will be designing an API for a Products app.

Getting Started:-

1- Install Node.js from the Node.js website

2- I’ve created a directory called ‘ProductsApp’.

3- Inside the newly created directory, execute the following command in the terminal

npm init
Initialize our Node.js project with default settings

The above commands results in creating a package.json file. The package.json file is used to manage the locally installed npm packages…

--

--