Cover and contents
A munotes Edition munotes.in
MEAN Stack Development
B.SC. (COMPUTER SCIENCE) · SEMESTER 4
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Computer Science)
For B.Sc. (Computer Science) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in Second Year
Contents
Module I The MEAN stack, Node.js, Express, MongoDB with Mongoose, and Angular
- How This Practical Is Examined: the Journal and the Two Questions 1
- Full Stack Web Development: the Browser, the Server and the Database 5
- The MEAN Stack: Architecture and How a Request Flows 10
- Setting Up the MEAN Development Environment 17
- Introduction to Node.js and Installing It 23
- Your First Node.js Programs: the REPL, a File and process.argv 28
- package.json and npm init 34
- Installing Packages with npm: dependencies, node_modules and the Lock File 39
- Node Modules: Core, Local and Third-Party 49
- module.exports, exports and ES Modules 55
- The Event Loop 61
- Asynchronous Programming: Callbacks, Promises and async/await 67
- Events and the EventEmitter 78
- Creating a Basic Node.js HTTP Server 86
- Handling Routes and Requests in Node.js 92
- Reading a POST Body and Serving an HTML File in Node.js 98
- Introduction to Express 104
- Creating an Express Application 113
- Middleware: the Request Pipeline and next() 121
- Built-in, Custom and Third-Party Middleware 128
- RESTful Routing in Express 135
- Creating API Endpoints: GET, POST, PUT and DELETE 141
- Testing an API: curl, Postman and Thunder Client 147
- Organizing Express Apps with Router Modules 161
- Error Handling in Express 168
- Environment Configuration with dotenv 176
- Installing MongoDB and MongoDB Compass 185
- Databases, Collections and Documents 193
- The Mongo Shell: Inserting and Finding Documents 200
- The Mongo Shell: Updating and Deleting Documents 207
- MongoDB Compass: the Same Work in a Window 215
- Introduction to Mongoose ODM: Connecting Node.js to MongoDB 222
- Defining Schemas and Models 228
- CRUD with Mongoose: Creating and Reading Documents 234
- CRUD with Mongoose: Updating and Deleting Documents 240
- Validation in Mongoose and MongoDB 246
- Indexing Basics 252
- An Express API on MongoDB: the Students API 260
- Introduction to Angular: a Framework for Single-Page Applications 268
- The TypeScript Angular Is Written In 273
- Installing the Angular CLI and Creating an Angular App 280
- The Angular Project Structure 285
- Anatomy of an Angular Component 292
- One-Way Data Binding: Interpolation, Property Binding and Event Binding 298
- Two-Way Data Binding with ngModel 302
- *ngIf: Showing and Hiding Part of a Page 306
- *ngFor: Repeating Part of a Page for Every Item 311
- Services and Dependency Injection 317
- Component Communication: @Input and @Output 323
Module II Angular modules and routing, forms, Angular on a REST API, a CRUD application, and deployment
- NgModule and Creating a Feature Module 329
- Angular Routing: Setup and Navigation 335
- RouterLink and RouterOutlet 342
- Route Parameters 349
- Lazy Loading of Modules 357
- Template-Driven and Reactive Forms 365
- Building a Form with the Reactive Forms Module 374
- Form Validation and Error Messages 384
- Submitting Form Data to a Backend API 391
- HttpClient and a Data Service 397
- GET, POST, PUT and DELETE Requests from Angular 406
- Displaying Server Data in Templates 415
- Observables and the Async Pipe 423
- Error Handling in HTTP Requests 432
- The Student Records App: the Plan and the Backend 443
- The Student Records App: the Angular Frontend 451
- The Student Records App: Validation and User Notifications 461
- Deploying to the Cloud: Render or Vercel for the Backend, Netlify for the Frontend 476
- Preparing the Angular Build 483
- Serving the Angular App with Express: a Single Deployment 490
- Environment Variables and Production Setup 497
- Introduction to Git and Version Control 506
- Git: Branches, .gitignore and a Remote Repository 513
- Authentication: Passwords, Tokens and Protected Routes 523
- Real-Time Updates with Socket.IO 534
Module J The journal and the practical examination
Every chapter
Every chapter of this book opens with the notes.
The cover and the contents above are free to look through. Every chapter of every module comes with the notes, and your progress is kept as you read.
Already bought it? Sign in and it opens.