![]() Nodemon is a tool that automatically restarts our development server whenever we change something in our files. How easy is that? We will improve this project as we go on. We now have our initial REST API Server running. Open your browser and then type in “localhost:5000” Run the project by executing the below command. const express = require("express") Ĭonsole.log("RFID backend API server is running.") This will create an express server and start listening at port 5000. npm install express mongoose dotenv multer cors path uuidĬreate the index.js and add the following minimal code below. Install the following dependencies that we are going to need. This will create the package.json files that will help us in maintaining our project. Initialize our backend folder using the command below. Setup the backend projectĬreate the directory where we will install our backend Node.js REST API Server mkdir -p backend Several HTTP endpoints will be exposed in a REST interface format. We will first begin creating the backend server of our application using Node.js and Express. In this MERN stack tutorial, we will be programming the backend application and the frontend application separately. This will serve as the root directory of our project where we will create the backend and frontend applications. Create a root project directoryĬreate a directory where you would like to create your application mkdir rfid-security-appĬd into the project folder. So that is all that is required and let us start building the project in this MERN Stack tutorial. Follow everything there once you have set up your own MongoDB Atlas database cluster. The steps on how to run it are in the README.md file. The code for this project is available for you to see in my GitHub repository. Install Visual Studio Code or VSCode in Windows Running the project MongoDB Atlas: An Overview and how to get started Visual Studio Code is an excellent IDE for any MERN Stack development and I have used it fully in this tutorial.Īlso, you should have installed Node.js in your workstation. I used Visual Studio Code in developing this application and set up a free tier version of MongoDB Atlas to serve as my database. You should have a working knowledge of the following technologies: The steps outlined here are based on my research about using the MERN stack based on the available information on the internet so if you encounter any issues or see any room for improvement then just let me know. I hope this tutorial would help you create your own application using the MERN technology stack as the use of Node.js and React greatly helps in the development process. In this post, I am creating a Students Radio Frequency Identification (RFID) Management system where we could execute a Create-Read-Update-Delete (CRUD) operation on our MongoDB database. I am sharing with you the full-stack web application that I have created using the MongoDB-Express-React-Node (MERN) stack in this tutorial.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |