MERN Stack Technologies Used For Web Development
MERN Stack Technologies Used For Web Development
https://doi.org/10.22214/ijraset.2022.40247
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
I. INTRODUCTION
Web development comes with a huge set of rules and techniques every website developer should know about. If you want a website
to look and function as you wish them to, you need to get familiar with web technologies that will help you achieve your goal.
Developing an app or a website typically comes down to knowing 3 main languages: JavaScript, CSS, and HTML. And while it
sounds quite complicated, once you know what you are doing, understanding web technology and the way it works becomes
significantly easier. Fret not if it is not coming easily to you immediately. You may need more time, training, and patience to dive
deeper into the subject, but you’ll end up with a good understanding eventually. We present you with an introduction to web
technologies and the latest web technologies list hoping it will make things at least a bit easier for you. Now, let’s take a look.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 311
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
B. Express.js
Express is a back-end web application framework for the Node.js framework. Rather than writing the code using Node.js and
creating loads of Node modules, Express makes it simpler and easier to write the back-end code. Express helps in designing great
web applications and APIs.
Express supports many middleware’s which makes the code shorter and easier to write. As an alternative to writing full webserver
code by hand on Node.js directly, developers use Express to simplify the task of writing server code. There’s no need to repeat the
same code over and over. The Express framework is considered for building robust web applications and APIs. It’s known for its
fast speed and modest structure, with many features available as plugins.
C. ReactJS
React is a JavaScript library that is used for building user interfaces. React is used for the development of single-page web
applications, complex software applicatons, and mobile applications. React can to switch rapidly changing data. React allows the
client to code in JavasScript and create UI components. React is an open-source JavaScript library that can be used for creating
views rendered in HTML. Unlike AngularJS, React is not a framework. It is a library.
D. Node.js
A cross-platform JavaScript runtime environment which was initially built for Google Chrome and later open-sourced by Google in
2008. It’s intended to build scalable network applications and can execute JavaScript code outside of a browser. Node.js provides a
JavaScript Environment which allows the user to run their code on the server (outside the browser). Node pack manager i.e. npm
allows the user to choose from thousands of free packages (node modules) to download.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 312
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
We looked at all four technologies that make up the MERN stack development in the previous section. While each of these
technologies is wonderful to work with on its own, integrating them into a web application that runs like clockwork is fantastic. This
is what we’ll be learning about in this part. Knowing how to use each technology is half the battle; the other half is piecing it all
together into something useful. What could be better than a visual depiction of a MERN stack development web application in
which the user interacts with the frontend, which then interacts with the backend and database?
Let’s look at an example to help us comprehend the entire procedure. Assume we’ve created a fantastic e-commerce website that
sells clothing. Our website is currently being used by a consumer who is looking for some sneakers. On the landing page, there is a
link that sends the user to the shoes page. So, what’s the best way to retrieve data from the backend? Let’s take things slowly at first.
1) The user is on our website’s landing page, which was developed with React.
2) The user selects the link to go shopping for sneakers. Because we have a single page application, we render the shoes page
without refreshing the page.
3) At this time, we don’t have any shoe data, therefore the state is empty. To retrieve the data, we issue an API request to our
backend.
4) Because the process of retrieving data from our database is asynchronous, which means it may take some time to complete, we
show the user a loading GIF while the data for shoes is being obtained.
5) In the backend, ExpressJS examines the endpoint (route) we’ve reached and calls the relevant controller function to obtain the
shoes’ data.
6) We utilise mongoose within this controller method to query our database, retrieve the data, and return it in JSON format
(JavaScript Object Notation).
7) This JSON data is delivered back to our React frontend, where we can use it to update the state with the freshly acquired
information.
8) React will re-render the components that rely on our state now that it has been changed, so we replace our loading GIF with the
shoes information.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 313
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 314
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
A. The Database
Every modern web or mobile application requires a database. The truth is that whichever specific database you choose is not that
important. What you should know is whether it is:
1) a relational database (such as SQL),
2) or document-oriented database.
Relational databases tend to keep all the data in a very structuralized way, in which various data types are related to each other.
Document-oriented databases offer a more loose structure. Some will argue strongly in favor of one of the solutions, but it largely
depends on the kind of app you want to develop. If its data types naturally fall into easy to predict structures and relations, a
relational database will be a better option if you don’t want to end up with a mess. On the other hand, if a large part of your data is
highly unique and impossible to relate to each other, a relational database may require lots of tweaking to work well.
As your app gets more and more popular, your database may often end up being the single most valuable asset you have. You
should pay a lot of attention to this issue right from the start.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 315
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
JavaScript is the most popular technology overall with as many as 67,7% of all respondents admitting to using it to some extent.
Considering the popularity of Node and the fact that it has no competition on the frontend, it is quite predictable. Python, Java and
PHP are also all relatively popular. It’s worth it to note that TypeScript (used by 25.4% of all respondents) is yet another proof of
JavaScript’s popularity, as it is in fact a superset of JavaScript, adding some optional new features to the language. Any JavaScript
program is also a valid TypeScript program.
What about databases? According to the survey, MySQL, PostgreSQL, Microsoft SQL Server, SQLite and MongoDB are the most
popular. The annual Stack Overflow report provides a wealth of information on the trendiest web technologies
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 316
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
What about stacks The Software House? What programming languages and other tools do we specialize in? Our developers mostly
tend to specialize in either JavaScript or PHP web development services. That’s why we use:
a) React, Vue or Angular on the frontend.
b) Node/JavaScript as well as PHP’s Symfony and Laravel as the main backend solution.
c) React Native, Android and iOS native technologies as well as Flutter for mobile development.
d) PostgreSQL, MySQL or Mongo as databases.
e) Various low-level frontend and backend stacks centered around React (including TSH’s own React starter for frontend toolset)
or Docker (backend).
And many more! Want to learn more about what kind of technologies we use commonly, sometimes, only as an experiment, or try
to avoid completely? Check our TSH Technology Radar. And if you have doubts about any of the technologies included in the
radar, make sure to contact us!
B. Cost-Effective
As MERN Stack uses one language throughout that is Javascript so it will be beneficial for a company to hire Javascript experts
only rather than hiring different specialists for different technology. This move will save a lot of time and money.
C. Open Source
All technologies that are involved in MERN are open-source. This feature allows a developer to get solutions to queries that may
evolve during development, from the available open portals. As a result, it will be beneficial for a developer.
B. Large-Scale Applications
It becomes difficult with MERN to make a large project in which many developers are involved. MERN stack is best suited for
single-page applications.
C. Errorprevention
If you want a technology stack that prevents common coding errors by its very design, then the MEAN stack is a better choice. As
Angular uses Typescript, so prevents common coding errors at the coding stage itself. However, React lags behind here.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 317
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue II Feb 2022- Available at www.ijraset.com
B. Features of MongoDB
1) Has Document-Oriented storage.
2) Has a single master with built-in replication support.
3) Ships with built-in sharding support ( spreading data around several replicated clusters).
4) It has very wide driver support, although databases ship with limited support, MongoDB has drivers for every language.
5) Provide horizontal scalability to balance the increasing load of modern applications.
6) Robust, flexible, and scale-able.
XI. CONCLUSION
So, we can say that MERN Stack has bright future ahead. In order to get started with MERN Stack development, all you really need
is a good understanding of JavaScript and ES6 Fundamentals, but also at least some familiarity with the basic concepts of React and
Node.js.There are many MERN Stack online training that will have you building your own dynamic web applications in no time.
All you really have to do is pick the one that seems best to you and get started right away!
REFERENCES
[1] "us-en_cloud_learn_mean-stack-explained". www.ibm.com. IBM Cloud Education. 2019-05-09. Archived from the original on 2020-05-14. Retrieved 2020-
02-16.
[2] Dickey, Jeff (2014-09-24). Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js. Peachpit Press. ISBN 9780133962376.
[3] "LAMP vs MEAN, Deciding the right stack for your startup". www.linkedin.com. Retrieved 2020-02-16.
[4] "The MEAN Stack: MongoDB, ExpressJS, Angular and Node.js". Tumblr. Apr 30, 2013.
[5] "Mean Stack". LinkedIn.
[6] "The most popular database for modern apps". MongoDB. Retrieved 2020-02-16
[7] https://www.sovereignconsult.com/blog/full-stack-development-what-is-mern-stack-and- its-advantages/
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 318