Full Stack development MERN Practical Notes | B.Sc. (Information Technology) Semester 5 | Mumbai University | munotes
Official Notes munotes.in
Full Stack development MERN Practical
B.SC. (INFORMATION TECHNOLOGY) · SEMESTER 5
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Information Technology)
For B.Sc. (Information Technology) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in Third Year
Contents
Module I Frontend Development using React
- How This Practical Is Examined: the Slip, the Journal and the Viva 1
- What MERN Is, and What Each of the Four Letters Does 4
- The Laboratory from Zero: Node.js, npm and Visual Studio Code 7
- Your First Node.js File, and Running It from the Terminal 11
- console.log, Variables, and Arithmetic in Node.js 14
- let, const and var, and Which One to Write 18
- Variables and Functions in One Short Program 21
- Operators: Arithmetic, Comparison, Logical and the Ones That Catch You 24
- Control Statements: if, else if, else and switch 29
- Loops: for, while, do...while and for...of 32
- Template Literals, and Why Backticks Replaced the Plus Sign 36
- What Practical 2 Is For: the JavaScript React and Express Both Assume 39
- Functions and Parameters, and the Three Ways to Write One 41
- Arrays: Making Them, Reading Them, Changing Them 44
- Objects: Keys, Values, Dot and Bracket 48
- Arrow Functions, and Where They Differ 52
- map: One Array into Another 56
- filter and reduce 60
- Changing an Object Without Breaking It: Spread and Destructuring 64
- One Program with Functions, Arrays and Objects Together 69
- Modules: require, import, and the Two Systems You Will Meet 73
- What React Does, and What a Component Is 77
- Creating the Project with Vite, and What Each File Is For 80
- Welcome to MERN Stack Development: the First Page 84
- JSX: HTML in JavaScript, and the Rules It Adds 87
- Showing a Value with Curly Braces 90
- A Function that Adds Two Numbers, on the Page 94
- Styling: index.css, className, and the style Attribute 97
- Your Own Functional Component, Rendered from App.jsx 101
- The Date and Time on the Page, and Why It Does Not Move 105
- What Practical 4 Adds: Props and State 109
- Several Components on One Page 112
- Props: Data from Parent to Child 115
- Props, Continued: Destructuring, Defaults and children 120
- useState: the Value React Re-renders For 124
- Events: onClick, the Event Object and the Handler 131
- A Controlled Form: value, onChange, and What the User Typed 136
- A List on the Page with map(), and the key Prop 141
- The Counter 147
- The To-Do List 152
- What Practical 5 Adds: Pages, and Data from Somewhere Else 158
- Installing and Configuring React Router 160
- Several Pages, and the Routes that Choose Between Them 164
- Link and Routes, and Why an Anchor Tag Is Wrong Here 169
- useEffect, and When a Component Talks to the Outside 174
- Axios, and Fetching Data from a Public API 181
- Loading, Errors, and the Three States Every Fetch Has 188
- Showing Fetched Data as a List and as a Table 194
- Search and Filter on What Is Shown 200
Module II Backend Development Using Node.js, Express, and MongoDB
- What the Backend Is, and Why the Browser Cannot Do It 207
- Node.js as a Web Server, Before Express 210
- Installing Express, and the Six Lines That Are a Server 214
- res.send: Answering the Browser 219
- HTTP: the Method, the Path, the Status Code and the Headers 223
- Routes in Express: a Path, a Method and a Function 227
- Route Parameters and Query Strings 231
- res.json, and the JSON a Program Reads 235
- Testing a Route: the Browser, curl and Postman 240
- Running the Server, Reading Its Console, and nodemon 245
- What MongoDB Is: Documents, Collections and BSON 250
- Installing MongoDB Community Server and Starting mongod 254
- mongosh, a Database and a Collection 258
- insertOne, insertMany, and the _id MongoDB Adds 262
- find, findOne, and Reading What Came Back 267
- Query Filters, Projections and sort 270
- updateOne, $set, and the Update Operators 275
- deleteOne and deleteMany, and Deleting Carefully 281
- CRUD: the Four Words and the Four Operations 286
- Connecting Node.js to MongoDB: the Driver and Mongoose 289
- The Mongoose Schema and Model 293
- What Makes an API RESTful 299
- A REST API in Express: the Five Routes 303
- A GET Route that Returns Documents 308
- React Fetching from Our Own API, and the Error in Between 313
- CORS, and the One Line That Fixes It 319
- A POST from React, and express.json() Reading the Body 326
- Saving What Arrived into MongoDB, and What to Send Back 331
- Showing the Saved Rows in React 338
- Keeping the Address Out of the Code: .env and the Base URL 344
- What Practical 9 Is: One Collection, Four Operations, Both Ends 349
- POST /api/users: the Route, the Model and the Validation 353
- The React Form That Sends a User to the Backend 359
- Reading the Users Back Out and Listing Them 366
- PUT and the Update: Finding a Document by Its id 373
- The Edit Form in React, and Where the Editing State Lives 380
- DELETE, and Asking Before You Do It 388
- Keeping the Page in Step with the Database After Every Change 395
- Putting the Two Halves Together 402
- Two Servers, One Address: the Vite Proxy 407
- Insert, Update and Delete Entirely from the Interface 414
- The List on the Page Is the Collection in the Database 421
- Form Validation in the Browser 429
- Validation on the Server, and Why Both 436
- Testing Every Route in Postman, in Order 446
- The End-to-End Run an Examiner Watches 453
- When It Does Not Work: Eleven Failures and How to Read Each 460
Module J The journal, the viva and the practical examination
The chapters
Every chapter of this book comes with the B.Sc. (Information Technology) Semester 5 notes.
The cover and the contents are free to look through. Buy the notes once to read every chapter of every subject in this semester.
Notes: ₹499 Already bought it? Sign in
Free either way: question papers, the syllabus, and the cover and contents of every book.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself, or the past papers, for the same subject.