Build Restful API CRUD With Node.js Express & MongoDB using Postman

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey what's going on guys hope that when we'll be fine and welcome back to another tutorial so in this video i'm going to explain you how you can create a card using node.js express and mongodb so we will create a restful api and in the in the coming videos i plan to make a mean stack video where we will use front end as an angular right so we will create api using node.js and the mobidb in express right so that's what we can do in the next video but this video is just uh simply a very uh conceptual for beginners those who have no idea how to create an api so we can all create the create update delete and read right so that's what i'm gonna do here so the first thing you need to do make sure you have your mongodb.com open and you need to install some software for the recommendation so the first thing you need to do is to click on the software and in my case i already installed the compass just want to show you where you can install that so you need to go open the compass and click on the try it now and that's where you can install by just simply download that you can if you're using windows so you just need to click on that or you can change the platform right that's where you go okay so once you're done with the compass installation and which is basically a graphical user interface just like it where you can create the database using compass a platform where you can just simply create uh collections which is uh again the mongodb is a new nosql database and which has um which is which has really not like a relational database it's completely different it's more like a json or bson which i'm going to explain you later on right so make sure you have installed the the mongodb compass and next thing you need to do is to install the if you haven't installed the node.js because we have to install some dependencies and it's very important to have node.js installed so you can install the recommended for more users or you can click the latest version right all right so we once you're done with that all i'm going to do here is once you install the compass you need to click on the sign in and you have to log in if you haven't create account you just need to sign up in my case i have already created an account so i'm going to log in with my account so email i'm going to type my email all right so i just click on here and logged in and it's going to redirect me direct to the cluster right i hope yeah all right so i can create a new cluster if i want so you could see i have already tested my project previously so there you could see the option yeah you all you need to do is simply click on the new project and once you click on the new project and it's going to ask you the name of the project and once you click next so this is going to bring you back so in my case i already uh created my cluster and um if which with the name of api that underscore right you can name that whatever you want so i'm going to once you create a project so this one brings you on the screen and it will ask you to create a cluster so you can click on the builder cluster so there are three options to uh for your path so the first one is the dedicated multi multi-cloud which is not free and again the dedicated cluster this is the multi-region cluster so the share cluster is already good for your testing website right so you can click on create a cluster for free and there we have some options so we have an option for the cloud provider and region which is aws by default and this is fine in the region and you can change the name of cluster if you want you just simply click on it and i'm fine with the cluster o right so just simply click on the create cluster and this is going to take some while to to create a cluster about one to three minutes so hopefully so meanwhile we have to i already created a folder here and uh with the name of node underscore js underscore api i'm also using postman which is a restful api testing tool and make sure you have also installed the postman and postman you all you need to do is to just visit the postman.com and you can log within or whatever you want so this is going to open up a dashboard like this which we're going to see later on right so i'm going to minimize this for now and let's install the npm package.json file so for the terminal the first thing i need to here do is to npm initialize and that's why so it's not asking me some questions which includes some license number or the author name and much more right so once i do npm initialize so it's gonna create my package.json file which has all the dependencies later on which we are going to install and just want to make this uh and so we have some version and the description the main basically this is this main means that your entry point of the file which in my case i want to change that to app.js and the scripts and we can install some modules and we can change the scripts to uh nodemon which is a which is basically uh tool for running your servers continuously without refreshing which which you don't need to again run again the commands and test this out so it will continuously check your server right so we can install that so let's install some installation so first i'm going to do here is npm install and i'm going to install express and i also need to install something which is known as the non-mon so let's install that and press enter so this is going to install the express and the nodemon all right so let's wait for that all right so this is going to install the uh package.json um which includes the dependencies for the express and the nodemon and as i explained we have installed the nodemon so i'm going to change that test to be uh start and i just need to remove that all from here and just change that to nodemon and app.js all right saves it so that's fine okay so once we are done with that let's create here the entry point of the file which in my case which is main and you can see app.js so let's create a file with the name of app dot js and inside app.js that's where we can bring everything inside here we can bring our express we can bring our some environment we can also create here dot env which is a zero dependency module that loads environment variables which i'm going to create very soon so let's first bring the express here module here so cons express equal to require which is again a common js format so let's bring here the express and the next thing i'm going to do here is to bring in the app so cons app equal to express and once you do that and all i'm going to do next is to just listen the uh i need to listen if the app so all i need to do is app.listen and just simply type your 3000 and that's fine and if i just write here node and let's create type here app.shares so i type and press enter which is again the node and the name of the file which is app.js and simply press enter and this must be load on the listen the port 3000 so let's have a look here so i'm going to type localhost and the port number which is 3000 so let's have a look and see and it's and it and shows an error which says not showing an error actually it's just a message which shows that there is no route cannot get slash all right so we can figure it out later on by creating our view our routes and um next thing i'm gonna do here is to install the dot env which i explained so i'm going to uh close my uh running server and yeah i i have to show you later on in order to run the um the non-mod all you need is just simply type npm start and press enter and there you go so it will continuously run the server by simply typing no uh by simply typing npm star right again i'm closing that now and let's let's create a very basic route here first so just to test out the things i want to make this video very user friendly so everyone can start with that so let's create a very basic route so like i just bring the app and with the request of cat so get means that we are we have a request which we need to fetch anything right so get request is used for that case if you need some we have also a request for pull for submitting the form we have something which is known as patch for something which used for updating and definitely with the name delete we can use that route for deletion right so that's what you're all going to see in this video so let's first look for the app.get right so i use here app.get let's bring here the slash for the home page and i want to bring something which is known as the request and the response so let's bring up here and i'm going to use here es6 so that's going to change the es5 es6 standard so make sure you have you can ride like that way or you can bring the function so i hope you guys are aware of that if you have no idea if you're very much uh user uh you haven't watched any node.js series ever so you can i recommend that you have a a very slight knowledge about the javascript something like variables functions and some es5 years six new formats right so make sure you make sure you have the id of that okay so let's bring up here something which is known as response which is the res so i'm gonna send her a response let's set that to be hello world all right so hello world and now if i just want to go to again type npm star and press enter and this must gonna show me hell well on the browser right so if i just refresh this and there we go so we have a hello world right here right so that's awesome okay so the next thing i'm going to do here we can also change the route like if i need app.get that's what we are going to do in this video we are fetching the employees so i'm going to use a slash implies and i want to write the code in a very good practices so that you can use in your project if you want so let's bring here the employees and bring here the request and the response and i'm going to bring here my request and the response so let's pause here uh the response like let's right here implies right if i just press enter and saves it and if i try to refresh this you see nothing happens and if i just try slash implies and press enter and there we go so on base of the route we can fetch the view right so that's all we're going to do later on and now the next thing i'm going to do is to just connect with my database and that's it for this video i'm going to take a break and i will be right back all right guys so welcome back now we have set up the some very basic route slash we haven't got an idea we can pass different routes in and we can get the response now i'm going to just show you the we have created a cluster so let's go back here and once the cluster installs so you you see something like here right so we have the connect and matrix collections if i click on the connect so this will ask you to connect with your application connect your db compass and you have to make sure you have connect your database access so if i click on the database access and this is going to bring me in here and you make sure you have created here a database name so in my case i already created my username and and the password so once you click on the add new user a new username user so you just need to pass here the username and the password and click on the add user so in my case i already created that so i'm not going to create it more so the next thing network access so in network xs you need to go to your ad ip address and there you go so you have two options you can add your current iep address or or you can even select the global which uh in your case might showing up so that's how you can set so i have set up my ip address which is your current ip address or you can set up the global right so i set my ip to 0.0.0.0 all right so broadcasting ib and all i need to do is to go to back and go back to my clusters and so once you go right here and so that's how you could see the options coming on your model where you have connect with the shell you can connect your application so connect using mongodb compass so in my case i'm going to connect it using the mongodb compass and you see that we have installed mongodb compass so once you click on here and it will ask you two options so already i've set up so many uh i already set up changes so you you can either choose i do not have a mongodb i have a mongodb compass just choose that and that's where the string that you need to copy right so i'm going to copy that up and just close this one and open up the mongodb compass so make sure you have extract the mongodb compass installation zip file and you just simply click on the exe file so this is going to open up the mongodb compass so there you have to paste your compass uh and you have to change few things here so i'm going to change the password which i have here in my case all right so i just add this password and let's gonna connect this one all right so this is gonna loading the navigation all right so now our cluster and our compass is now connected and we have to create the database first so let's give it the name of card uh or we can change we can create the name of api dash crud right and you can also play it here the collection name which is your table name right so just just give it the name of employees so i'm going to click on the create database press enter and there we go so this is going to create our very first database you can click on here and you can click on the collection and you can add the data if you want so if i just click on here you can insert the document if you want so um so you have an option you can either write in the json format or you can also either you can that's more easier to add the data here on this format so just want to add some data so click on the plus add file after the id and i have i want to pass here name let's give it a name and let's pass here john and it should be john i hope you guys could not can't see this looks very much smaller i'm going to change change the view a little bit zoom in right zoom in okay so john and let's give it the uh email so john gmail.com and the last thing that i need is a salary so let's give it the 2000 right okay so that's fine these are the three uh the three columns that i need to create and let's insert it right so make sure the object id should be string so insert that and you see there is an id which is basically unique so it is a long string so which is the id is basically underscore id so make sure that it should be underscore id which we are going to fetch it later on we can either it can be used in deletion added or you can al you can also fetch a single id right so that's where you can fetch the underscore id all right so let's go go back and just grab the this string which i have already done um i need to click again on the connect and connect using mongodb compass and just copy that for now and i'm gonna just paste it right on our uh visual studio code right so i need to create here a folder with the name of config so let's create here a folder and inside config i'm going to create here a file with the name of config.enb all right so config.enb and let's bring here underscore give it a variable name underscore uri equal to and just paste that string right so that's again asking me the password so in my case the password is aviation one two three right all right so now that's good and later on i'm going to do some few more changes okay so let's gonna change that to um let's add here a port number two support is 3000 in my case right so that's good okay now i need to install some few more dependencies here so the first dependencies that i need here is the dot env which i explained which is a zero dependency module that can access your dot env file just like we did dot enb so i'm gonna install something which is known as npm install you can either install from the visual studio terminal or you can use git bash all you need to do is simply go to git dash scm.com install the download the the for windows or if you are either working on on the os like mac you can you can install that too okay so let's type here npm install and let's type here dot env and press enter so this is going to create the dot env for us and let's bring this in here so const dot env equal to require dot in all right so once you're done with that you need to go to your i need to create a here a database connection as well so let's create here a file with the name of db.js all right so i need to install something which is known as mongoose which is an rdm which is uh object data modeling so let's install the mongoose here so i'm going to open up my git bash so you can use git bash by simply going to get dash scm.com where you can install that so i want to show you so if you're using windows you just need to click on that if you're using mac and down here you can see the settings right so that's how you can install the git bash so let's install first the mongoose right all right so the simply all i need is the npm install mongoose and this is going to install my mongoose and let's see how how long it takes so for now i'm going to install my do some coding all right so this install and let's go inside your package.json and there you go right so you bring so it will bring us inside the dependencies so i'm going to go back to mydb.js file and let's create bring in here the special const mongoose equals to require mongoose and now here i want to create here our variable with the name of connectdb to async now whenever you're working with mongoose you are working with the promises and i'm using here async await you can use anything right so i'm going to use here async and let's deal with the tri-cat handling and i'm going to bring this in try and catch the error if there is some error so let's bring this bring this in and i need to console the log and bring it here the error right okay so try and catch and now inside here i need to bring here something which is known as the connection so cons connect sorry i don't need this bracket so just remove that for now so cons connection equal to ev8 and mongoose.connect and you know we have used here the environmental variable so process dot env and the name which of which we defined which is underscore uri right uh which i'm gonna show you so this right so you could see this is the string that we pasted right so underscore uri and next thing i need here is let's bring here a comma and we need some brackets inside that i need to define some parameters to avoid the console errors in order to define the so we have used new url parser let's bring it true and next we need to have our use unified topology so let's bring that to be true and the last thing that i need is the use find and modify and bring that to be false right okay so after that let's bring here inside the console i need to bring it i just need to check my connection it's working fine let's bring here so db connected and the host name which we can define like con dot connection dot host all right so saves it that's fine okay now we have set up the connection if there is a connection we get we can bring this in and show us the console and if there is an error it will uh show us the error and we need to stop the processing in order to stop the process i need to just simply use process dot exit and bring this one here right okay so that's how we can end the process and the last thing that we need is to export the module so module.export equal to and the name of that variable which is connectdb all right so that's fine now now if i go back to my console you see nothing happens here and because that we have to import it inside the app.js file so let's go inside here and define the connectdb right so let's go inside app.js i need to just comment this out because we want now we need to uh work with the some handling of data and connect the db and with the help of postman i'm gonna test my api right okay so i also need to create here something which is known as dot env and uh you can also install that like npm install i hope i have installed or not i'm just not sure so let's install that dot enb and it's installed now if i go back to the package.json file so we have bring this in so let's first bring this in and define here const dot e and v equal to require dot env all right saves it and let's go down here underneath that and define here const connect tb equal to require and let's bring up the path for that to dot slash config slash db all right and down here i need to i need to load the configuration and that's where we need the help of dot env so let's bring here dot env dot config so dot config and here i need to define the path so the reason why i define here dot env just because we need to access the environment of variables so we give the path here and the path is a dot slash config slash and config.env if i try to saves it and yeah i need to define this connectdb right after here so let's define that too and now if i saved it and let's have a look and see so there we go so now mongodb is connected we have the cluster name right so there we go okay now our mongodb is connected so the next thing that i'm going to do here is to define the models so models are basically like i have like a name of the table that we defined so let's create here a folder with the name of models and inside models we have to define some of the fields right so let's go inside the model and create a file with the name of employee dot js all right so inside employee.js i need to first bring my mongos in so let's define aircons mongoose equal to require and let's find a mongoose and right after here we have to define the employee schema so we have to define a schema let's bring our employee first so const employ equal to mongoose.model mongoose dot model define here the employee here first so employ and bring some some fields so the schema which our uh table consists of which has name inside it so we have to define its type which is string and next we have to define the required if if we need so let's bring that to be required to be true and now all you need to do is just copy that and paste it two more times and replace the email to and bring a comma down here email to be type of string require true and change that to be salary that's fine okay so uh once you're done with that and you need to export the module so module.export equals to employ all right so that's fine now we have to create here something which is known as the routes we need to bring this routes in just like we did here inside my main route entry file which is app.js we just bring that we bring the get request we define the route route which is slash in my case which is slash employee the second case then we bring the request in the response and the good way is always that you have to route and you have to use the route router and with the help of uh with the help of the middleware we have to bring these things in and so that's why i'm creating here a separate file where we define our routes and we can only use the middleware right here right so the router view so for that i all i need is is to create here a folder with the name of let's first collapse this and claps out and let's create here a folder with the name of routes and inside route i'm going to create here a file with the name of index.js all right so let's first define here the express so const express equal to require express and now i need to also install here a package which is known as router so let's go back to the terminal and simply type type here npm install router you can definitely uh use the terminal for visual studio code if you want but i feel i'm okay with that so now our router is installed let's go back to the package.json and there we go okay so let's first create here the bring the router in so cons router equal to express express dot router and i need to bring my model in which is employ so first define the const employee equal to require and define the models dot dot slash model slash employee all right so first we need to define here get all employees so in order to get all the employees i need to bring my router in so router.get we have we are using a get request here so we have to define the name of the route which is slash api slash implies i think so i have off my postman so let's say i just want to open the post manager so let's click on the postman right okay so slash api slash slash employees and we need to bring us bring the risk requests and the response we bring is the request and the response so i'm using here es5 es6 standard so let's define it employee dot point if there is an employee let's find that all we have to define some parameters so if uh we if there is some error or the data so let's define that and in order if there is no error so we bring here if there is no error then we have to simply show us the response which is response dot uh send and simply send the data and on the other case if there is an error so we just simply bring here console and error right so that's as simple as that now the last thing that i need is to export the router so let's define here module dot exports equal to router now this is not going to work now if i go back and say we have to define inside the app.js file so let's go back to the app.js and define the routes so right after the connectdb i'm going to define the route so let's create here a folder app.use and here slash and later on i'm going to show you what this slash does so require and dot slash route slash and the name which is index all right now basically that means that this is the root slash and if i go back to the index.js and whatever i type after that which is slash api slash implies so this is going to route me to that page if i if i type here something like abc so the route should be like slash abc slash api slash employees so in my case i want that to be fine okay so now my postman has been open and let's dismiss that and let's have a very first request for our local host port number 3000 and slash api slash employees so the type of the request which is guest get and now if i just simply click on the send and this is going to show me an empty array the reason why because if i go to the uh my config dot env you see we have set up the password and but we haven't set up the dv name so in my case which is slash which is slash test which is not the right name of my day of my database name so if i go to my uh gui mongodb compass so the name which is api slash card so i just need to change that to slash api slash try right if i just try to saves it and there is no issue if you can just simply you don't need to close the server but still just for the confirmation i just want to run the server again and now if i go back here and send it so let's have a c and there we go right so we have the data now we have the id we have the name we have the email and the salary which we have just created from the collection now if i just try to create another collection so let's create here the collection so insert document and you just need to click over here and let's define the name and set that to be a b nation and let's give it the email of abnation at the right gmail.com and let's define here the salary of 5000 all right so now if i just try to insert that so it insert the collection and now if i go back to the request and send it and there we go now we have our amination so later on i'm going to change that to we can also save using uh using postman and we have to create an api so just take a while for a break for one minute and i will be right back all right guys so welcome back here so up to this point we have see how we can get all the requests by simply giving the router.get and pass here the request which is slash api slash employees we pass the route and we have to check if there is an if there is a data find the data and with the help of the response we pass here a response and send the data if there isn't if there is a data otherwise shows the error right so it's very simple and now i'm gonna do here is now we can how we can save a new employee so i'm gonna create here a new um router for the post request so save employee so if we are submitting the form we have to use here a request which is known as post request and now i have to pass here the name of the route which is slash api slash employee slash ad and we have to pass here request and the response and here just right under that i need to create here a new object i need to have a create a new model define a model so let's create here employ equal to new employee and i need to define here something uh which contains of all the the the normal fields that we have we have the attribute with the name of name equal to request dot body dot name now if i try to submit the form just defining that that request and define all the fields this is not going to work we have to use something which is known as body parts which i have to install and that's how we can submit the form otherwise it's going to show us the request for the handle request okay so let's let's look for that next so let's define your email and request dot body dot email next we have our salary so salary should be request dot body dot salary now right after that we have to we have to see if the employee dot save and this this implies save must have two parameters which is the data and and the error so let's define that and right after here we have to def we have to check the status of that so i'm going to use here the status of 200 which means that everything is successful everything is okay and i need to use a json request and i need to code if the code is 200 so show us the message so use the message object so message should be just employ edit successfully and we have to pass here that name which should be add employee and pass here the data right as simple as that okay so once you're done with that now i have to define here is to create a body parser and define in myapp.js file so let's going to create that first so i'm going to go to i want to clear that out and let's type it npm install body dash parser and simply press enter and it's going to install the body parser for you so let's define right after the express so so i need to define a const body parser equal to require body dash parser and i need to use that for that just bring that right after the app so i need to use here app.use and let's define here body parser dot json we want to get the data in form of json format and now let's go back to the request for post request so i'm going to use the request post type your localhost and slash api and the request which is slash api slash i think so let me check this out so just copy that slash employee slash add and now if i just try to go to the body and change that to raw i need in json format so let's type here and check this out so name let's give it the name of test and the email oops so email should be test at the gmail.com and it's a salary it should be in the double quotes here and the keys and the values format right so the salary should be 3000 right now if i just try to click send so you see now the message it says and the code is 200 which means everything is okay which you can see the status and message which means employ added successfully and we can we also add the employee now in order to test this out i need to go back to the get request we have so let's say if i try to retrieve this data so you see we already existing data with john email and now we have the new data which is test there gmail.com all right so we are good to go now we can also we can also add the data right so let's go back to the visual studio code and now i want to retrieve a single data now what actually i mean is i need to we have to get the data on based off id right if i just simply copy that and with the help of the new request i need to use slash api and slash id the id that we need to get for the individual user so let's go and find and how we can retrieve a single data using id right so let's go back to the index.js file and i'm going to get the single apply so right after the save i need to use here get single employee so use here router dot get and i need to bring here slash api slash employee slash and the id which is call an id so we need to define the id in in that way right so call an id and now we have to pass the request and the response so let's define your request and the response and right after here we have to get the id so we have to use something which is known as find b find by id so find by id we have to get the id by simply using request.params.id and i also need to pass the error and the data that we want to send to the response so here if there is no error just simply show the rest.send the data and on the other case if there is no error so simply show us log and tab and show the error right so that's how we can grab the error okay so let's have a look and see now i'm just getting an error just because i forget to bring that arrow function right okay so saves it and if i go back to the uh to my postman and let's have a request so i want to copy that which is very much identical to that just i need to pass the id and i need to make this a single remove the s slash now i need to pass the id so let's grab this ids so i'm gonna copy that up and if i go back to and the request which is get and send the response and there we go so that's how we can grab the data we can also grab the data for john if i want let's just grab its id and simply just paste it up here send the response and there we go right so that's how we can get the single user so now let's look for updating the data updating the employee data so go back to the visual studio code so right after here let's update the employee so it's very much identical to the top so let's first use here now the request which i'm using request for the method which is part because we are updating the data so we you have to use a method or put and let's bring here the route request so slash api slash employee slash edit slash call an id i need to pass here the id as well so very much similar we have to pass the request and the response and let's pause here the callback function and right inside here i need to define some data so const imply equal to so for name definitely we need to pass a request so i just want to copy it from top so let's go on top of it and just grab the name email and the salary so right after here i define all the fields and now i need to update the data so let's go and type here employ dot find by id and update right so i want to update the data on based off id so i use a method which is with the name of find by id and update and i need to pass here the id request so request.params.id and next i'm going to use here dollar set which i'm going to explain what actually does so dollar set to employ so if i hover on it you could see that it will match the result on based off id it will set the data on base of id name and only update the updated data right so next i want to make the new let's bring here new to be true if there is updated data then just update it so new i bring this in and i want to pass here another response which is the error and the data which should be in brackets so error and the data and right inside here i need to check simply pass the response so if there is no error so response dot status of 200 just like i did on top and i need to format my data in json so dot json and code should be 200 i need to pass here the message which shows employ updated successfully and i need to pass here another object for the data so update employee you can name it anything so update employee and let's pass this data here right so as good as that so let's pass for the another condition make this a single o right so on for the else case i need to just simply pass here the error and save it all right so let's have a look and try so i'm going to copy that up and let's go to the postman and look for the end of the request so localhost and i need to change that to just remove that all and we have our slash api slash employee slash edit slash column id i need to update the data so let's update data for the john i need to make this john doe the name right so let's go here and grab this one slash the id and the type of the request which is put and let's go and add the port request go to your body and select raw change that to json let's change the name to be so let's change the name to be john doe i need to change the email to be john doe at the right gmail.com and let's change the salary to let's change that to 10 000. all right so if i just try to send the request and there we go so you can see the employee updated successfully changed to that now if i go back to my get request and send the response and if i try to check the data for the john and you see everything works well so we have our updated data with the john doe we have the email and we have the salary right so if i go back and refresh this so you see we can also populate the data on our database definitely because we are getting the data and with the help of mongodb and we can also show that collection on our uh on our with a connection that we did for with the mongodb compass all right so that's good to go and the last thing that we are left with is how we can delete the data which is very simple so let's go back and delete the employee said delete employee so i'm going to use your router dot delete let's pass a slash api slash employee slash and pass here the id i need to pass a request and the response and let's add here employ dot find by id and update just like we did here find by id and sorry we have to delete so i need to use here find by id and remove right and i need to just similar like we pass here the id so request.params.id because i need to delete the individual data let's pass here the error and the data and the callback function so right after here i need to use if there is no error right and if there is no error just simply send the status response dot status of 200 and i need to give here json and let's pause here the code for 200 message it should be simply message of employ deleted successfully and i need to pass here the data let's give it the name of delete employ and pass here the data all right so let's have a look and see so i'm going to copy that up and let's have a look so slash api slash the id so i need to go to the postman open up the new tab let's copy and localhost 3000 and pass here the request which is slash aps slash employ and the request which is delete now let's delete the data for the test data let's suppose i want to delete this data and let's go back to the delete here and remove the slash column id and bring here the id the the original id that we have now if i just try to get this send request and you see now the code is 200 messages that the employee deleted successfully let's go back to the get request and see now we have to have only two data so if i click here send and now you see only we have john doe and the av nation right so now we don't have the data for the employee for which we have just deleted all right so i hope you guys learn a lot of stuff here you understand now if i go back to the database and if i refresh this you see now it's removed so i hope you guys learned something from here you know how you can create the api a complete api card that we created with the help of node.js express and mongodb and in the next video i want to make a mean stack video where we can use this api and use it on our uh as a front end for the angular so if you really love it so please don't forget to like and subscribe and i want to see you for the next part
Info
Channel: AB Nation Programmers
Views: 19,251
Rating: undefined out of 5
Keywords: Build Restful API CRUD With Node.js Express & MongoDB using Postman, nodejs, mongodb, mongoose, mongodb compass, create connection using mongodb, nodejs crud, node js crash course, express crash course, create crud using mongodb nodejs and express, Build A Restful Api With Node.js Express & MongoDB | Rest Api Tutorial, Build A REST API With Node.js, Express, & MongoDB - Quick, API, Complete Node.js Express MongoDB CRUD, CRUD REST API using Node | Express | MongoDB
Id: kUZl7usU6_U
Channel Id: undefined
Length: 49min 43sec (2983 seconds)
Published: Thu Feb 04 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.