Mern Stack Project
Mern Stack Project
@International Journal of Progressive Research In Engineering Management And Science Page |- 121
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
2.1 HTML - It's stands for hyper text markup language, created by Tim Berners lee in 1991 and published in 1995.
HTML 5 introduced in 2014. HTML is client side scripting language used to design a webpage. HTML can be script in
note pad or any text editor with extension .html or .htm or can also use IDE like visual Studio for best experience.
HTML is use to create a website and become web designer. HTML use to structure web page.
2.2 CSS - It's stands for cascading style sheet it is used to style web page color, size, background etc. It can be define in
three level of style sheet. Inline CSS, Internal or Embedded CSS, External CSS.
Inline CSS - CSS property in the body section attached with the element is known as Inline CSS.
Internal or embedded CSS - CSS rule set should be within HTML file in the head sectionsection or after the </HTML>
tag.
External CSS - When you wanted to change in multiple pages using <link> tag on every page it is in head section and
save that file in CSS extension external in CSS file.
2.3 JavaScript – JavaScript is object oriented scripting language it is light weight program language used in web
development. It create by Brendan Eich in 1995 emplemented by Netscape. It is functional logical part of web
development.
JavaScript is scripting language if the web . JavaScript used millions of webpages to add functionality, validate form,
detect browser and much more.
JavaScript act as both backend and frontend.
JS makes webpage dynamic and functional.
@International Journal of Progressive Research In Engineering Management And Science Page |- 122
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
3. FRONTEND AND BACKEND TECHNOLOGY
In full stack web development we need both frontend end backend. Frontend is clients side scripting language and
backend is server side scripting language. ReactJS is frontend and ExpressJS , NodeJS backend server side language
MongoDB is backend database administration.
3.1 Frontend
Frontend development is client side development browser or application through which user can interact directly. It is use
creating web user interface frontend mostly deals with HTML, CSS and JavaScript.
Responsive design - Bootstrap is free and frontend development (html and CSS) framework for faster and easier web
development. Bootstrap is being famous for developing with the components that have the ability to follow the property
of responsive design. Responsive design is about to use CSS and HTML resize, hide, shrink, enlarge or to move the
content to look good on any screen. Responsive design is used to allow your page to work for computer, mobile or tablet.
Webpage creation - The web page is document commonly written with HTML that is accessible through internet or other
network using internet browser. The web page accessible by entering URL address.
User friendly web design - Beside the basic elements of web design that makes site beautiful and visual compelling , the
website must always consider to end user . User friendly can be archived by paying attention to the following factors.
Navigation - Site architecture, menus and other navigation tools in web design filter, search and option available.
Multimedia - Relevant video, audio, text, animation and graphics this make web page attractive and allow user to
encourage visitor's to spend more and more time.
Compatibility - Design a website that equally well perform and supported different browser, operating system or machine.
Technology - Advancement of technology give designer freedom to add movement and innovation , allowing for web
design which is always fresh dynamic and professional.
Frontend framework - Frontend framework like Angular, React , JQuery, backbone, Vue use to develop web application
using framework and library.
Frontend is for UI user Interface client side wheareas Backend for logic, database server side.
3.2 Backend
Backend is server side language backend is data access layer , the backend of application is responsible for things like
calculation, business logic, database interaction, and performance. Backend code run on server this means backend
developer not only understand program languages and database but also having knowledge of server architecture as well .
If application is slow, crash often, or constantly through error at user it's likely because of backend problems. There's lot
of tools and framework used in backend development. Example - NodeJs, MongoDB, ExpressJS all comes under
backend development. Backend deals with server as well as database.
All popular program language java, c/cpp, php, python, perl, c# comes under backend functional functional service of
program.
@International Journal of Progressive Research In Engineering Management And Science Page |- 123
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
API - API stands for Application Programming Interface It is an agreement or a protocol between two or more pieces of
software and they can communicate and consume services and passing data between both of them. Most of backend
programming language support API. Through framework you can build your custom API for others. API is underlying
infrastructure of the web.
@International Journal of Progressive Research In Engineering Management And Science Page |- 124
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
4. ARCHITECTURE OF MERN STACK
We choose loosely couple Architecture
The MERN architecture allow us to easily construct 3-tier architecture ( frontend , backend and database) entirely using
JavaScript and JSON. Web part as ReactJS, Server part as ExpressJS and NodeJs and database as MongoDB.
MongoDB is NoSql database use high volume of data storage. Open source document oriented database . It store data in
JSON format. MongoDB use BSON to query database.
NodeJs is JavaScript run-time environment built on chrome's V8. Nodejs allow to run JavaScript on server. NodeJs runs
single thread non-blocking , asynchronous programming which is very memory efficient . NodeJs use backend services
such as API.
ExpressJS is flexible NodeJs framework that provide robust set of features for web and mobile application. Its provide
easy routing of request based on HTTP method and URLs. Its allow to set middlewares to response to HTTP request.
Allows dynamic render of html based passing argument to templates.
ReactJS is JavaScript library for building user interface for web and mobile application. React is used to build single
page web application. React allow to create reusable UI components. React-router to handle front end routing.
5. REQUIREMENTS OF PROJECT
Following Requirements -
- Visual Studio code editor
- NodeJS
- ReactJs
- postman
- MongoDB
- ExpressJS
- npm installation
6. DESIGN AND METHODOLOGY
You can easily create and share website designs with Adobe XD. MS paint can also used to design on paper before start
coding. As you see in figure left corner their is logo. Right side button at head section division. Body Section Headline
and left side filter division and right side card division and bottom their is pagination division. Whole homepage divided
into many section division.
@International Journal of Progressive Research In Engineering Management And Science Page |- 125
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
@International Journal of Progressive Research In Engineering Management And Science Page |- 126
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
NodeJs is powerful JavaScript runtime environment developed on chrome's VS engine
NodeJs is run time environment contain everything that needed to execute JavaScript code.
Its compile JavaScript code code directly into native machine code.
It enable the developer to run JavaScript code directly into computer instead in a browser.
Module - It's functionality which organise in a single or multiple JavaScript file, and can be reused throughout NodeJS
application.
Types of Modules
Care modules - These are inbuilt and can be used without any installation
Node Package Manager - These include group of modules or packages developed by other developer can be used in
your application by installation.
User Define Modules - These are modules created by you, which you want to reuse in rest of your application.
7.2 MongoDB
It is open source database management system (DBMS) that uses document oriented database modelmodel which support
various forms of data.
It's hold the set of collection and store the data as document.
MongoDB support BSON data (Binary JSON) data structure and complex query language.
Bason Document storage is Binary representation of JSON like document. It gives high speed to store mesh data.
MongoDB contain powerful tool called MongoDB shell, which provides built in support for administering MongoDB
instance and manipulate data using MongoDB query language.
On installation MongoDB you get two parameters MongoDB shell and server.
CRUD operation in MongoDB
Create , Read , Update and Delete operation used to manage data/document within database.
MongoDB compass is IDE for MongoDB provides GUI and easily analysis and perform queries.
7.3 ReactJS
React.js is JavaScript library for building user interface.
React is used in building of single page web application or mobile application , as it is optimal to fetching rapidly
changing data needed to be recorded.
Features of react
@International Journal of Progressive Research In Engineering Management And Science Page |- 127
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
React components provide many inbuilt component liberary for faster execution
Element like JSX, Components, Props, State and virtual DOM, let react create application faster with small code size ,
easy development and rich user interface.
Top cooperation such as Facebook, New York Times, Yahoo! Mail, Netflix, Instagram and much more use it to solve
their user interface related issues.
It provide efficient DOM manipulation functionality, which improve speed and faster execution.
7.4 ExpressJS
Express is minimal and flexible NodeJS web application framework that provide a robust set of features for web and
mobile application. Express is used to create server side of web application.
Express uses middlewares function, The function of middlewares function that have to the request object (req) and
response object (res) to the following function of the intermediate processing in the cycle "request-response" Application.
Feature of Express
- Fast server side development
- Middlewares
- Routing
- Template
- Debugging
- Time efficient
@International Journal of Progressive Research In Engineering Management And Science Page |- 128
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
HTML, CSS, JavaScript is used for making website. Bootstrap framework is used to make website responsive.
This is single page web application that's why we used ReactJS. NodeJS is used as sever API using ExpressJS framework
and database connectivity through MongoDB.
@International Journal of Progressive Research In Engineering Management And Science Page |- 129
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
We have also used Filter for finding nearby location and cuisine types of food available and cost efficiency range. We
divided whole page into division section for various options and categories. With Great GUI desktop view we built our
website.
9. DISCUSSION
This project build using MERN stack where we started build app with HTML, CSS, JavaScript, Bootstrap for web app
development. We use backend Express.js, Node.js and MongoDB. Express for Node.js web framework. Node.js as
JavaScript web server and MongoDB as document database. Build frontend using ReactJS client side JavaScript
framework. Using these technology we made single page web application using ReactJS. We style the web page by great
visual background wallpaper and font style. Add border around element and position them properly. A user generally
looks user nearby for reason fastest delivery that's why we given option to select restaurant nearby and place order. A
option should provided to choose desired location that allow user to search for restaurant in particular area. We provided
user with quick search option like breakfast, lunch etc. Moreover, user who visit website will fully satisfied with outlook
and option available for customer service and re-visit and share our app with others.
10. CONCLUSION
A paper show details analysis to how to make MERN full stack web products. We have discussed different technology,
framework, library using to MERN stack application. Web application online restaurant design using these technologies.
MERN stack development used 3-tier architecture Frontend development ReactJS using HTML, JavaScript, CSS and
Bootstrap. Backend development using ExpressJS web framework and NodeJs web server. Database management used
using MongoDB. Three layers of MERN stack as Web or Frontend level, second center or server level and Database as
Backend level. MERN stack is very famous over other stack technology used for designing and creating website. The
website contains online restaurant order food items from available restaurant nearby by cuisine items customer looking
for delicious dinner or breakfast. Our web application contains all necessary section help customer to choose from such
location, Cuisine, Price range. Customer can Sign up for LogIn to our website. Our website simplified by provide images,
graphics and font style to beautifying website and customer overall experience and enhanced web page speed and content
provided.
Appendices
Appendix I. Homepage Website HTML, CSS, JavaScript code
@International Journal of Progressive Research In Engineering Management And Science Page |- 130
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
Application js Website code
@International Journal of Progressive Research In Engineering Management And Science Page |- 131
e-ISSN :
INTERNATIONAL JOURNAL OF PROGRESSIVE
2583-1062
RESEARCH IN ENGINEERING MANAGEMENT
AND SCIENCE (IJPREMS) Impact
www.ijprems.com Factor :
Vol. 02, Issue 08, August 2022, pp : 121-132 2.265
[email protected]
11. REFERENCES
[1] Pro MERN Stack, Vasan Subramanian Bangalore, Karnataka, India. ISBN-13 (pbk): 978-1-4842-4390-9.
[2] Hausman, A. V., &Siekpe, J. S. . The effect of web interface features on consumer online purchase intentions.
Journal of Business Research, 62, 5-13.
[3] Ethier, J., Hadaya, P., Talbot, J., &Cadieux, J. . Interface design and emotions experienced on B2C Web sites:
Empirical testing of a research model. Computers in Human Behavior, 24, p.2771-p.2791.
[4] Darley, W. K., Blankson, C., &Luethge, D. J. Toward an Integrated framework for online consumer behavior
and decision-making process: A review. Psychology & Marketing, 27, 94-116
[5] https://docs.mongodb.com
[6] http://expressjs.com/en/api.html
[7] https://reactjs.org/docs/getting-started.html
[8] https://nodejs.org/en/docs/
[9] https://web.dev/progressive-webapps/#i18n.paths.progressive_web_apps.topics.introd
@International Journal of Progressive Research In Engineering Management And Science Page |- 132