![]() ![]() MongoDB handles data CRUD while Node.js provides the webserver that manipulates the data in the database as the user interacts with the React front-end. Node.js - essentially allows you to run JavaScript on the server-side of an application, which apparently is faster than using popular scripting languages like Ruby or Python on the back-end React - Facebook’s super popular front-end framework for JavaScript MongoDB - a NoSQL document-driven databaseĮxpress - a back-end framework for Node.js that, put simply, is like what Rails is to Ruby, helping to organize a web app into MVC ( here’s more from a user on Stack Overflow) So it makes sense to me professionally to develop JavaScript mastery. Even mobile apps are going the way of the web browser with the advent of PWAs. Going forward into the foreseeable future, it seems that most software applications will be used in a web browser. All four of the technologies use JavaScript, the language of the browser, and perhaps the most popular programming language in the world. I’m excited about this tech stack because there’s a sense of consistency to it. I used it to get started on this social network app I’m building for the philosophy club I founded and run. So, we now have an overview of what we are going to build, so we would now like to start building the project.This tutorial on Udemy by Brad Traversy is a great introduction to implementing the MERN Stack. We would create REST APIs with Express and use these endpoints in the React frontend to interact with our backend part. We would use mongoose to connect to our MongoDB database. We would use MongoDB as the NoSQL database to store our data as documents in JSON format. We would use React Bootstrap library for basic designing of the interface.īackend - For the backend side, we would be using the Express library on top of Nodejs. Now, let's get familiar with the tech stack we are going to use for building this application.įrontend - In the frontend side, we would be using React as the frontend library. So, these are the basic features we would be having in our application. ![]() Option to pay and checkout thus creating order and emptying the cart.Using Local Storage to store the JWT so that we only allow logged-in users to buy items.Display the total bill of the cart and update it as soon as the cart is updated by the user.Option to add items or remove items from the cart.Option to add, edit, view and delete all the items in our store.Authentication using JSON Web Tokens (JWT).So, the features we would be having in the application that we would be building are:. We aim to make a working e-commerce website where everything functions correctly. We would use React Bootstrap to design our React Frontend minimally. We would not be dealing with CSS much as our focus would be on understanding how we deal with APIs on the frontend and will focus on the basics part. We would keep our design simple and minimal on Frontend side. We can surely add features on top of this project to make it better. It would not have all the bells and whistles of a complete modern E-Commerce website since this is aimed at learning and understanding how everything actually works. So, basically, it would be a simple E-Commerce website. So, in this first part, we would talk about the basics of the project and also set the project up. (These are friend links so do not worry about paywall) ![]() So, please click here to go to Medium and read it in completion. Here I will give an overview and give the codes for the various pages part by part. ![]() Notice: I will publish the complete detailed version of all the articles on the Medium website. So, it would be very beneficial since it would teach you the concepts of REST API and will help you to integrate these frameworks. This means we would be using Node, Express and MongoDB to design the REST APIs and then we would use those APIs in our React frontend. Previously, I have made two series which were a social media website and job search website but both of them were built on Django framework and we used Django templating engine to create the frontend for our applications at that time.īut, now we are using Full Stack JavaScript to design and develop our applications. This series will be completely focused on MERN stack (MongoDB, Express, React and Node). Hello friends! So, I am starting a new article series based on MERN stack and this article is the first part of that series. ![]()
0 Comments
Leave a Reply. |