|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/nodejs-mongodb-express/
课程评论:没有评论
课程名称:NodeJS MongoDB Express 初学者到中级 JavaScript 课程概述: NodeJS 是为性能而构建的,可以让您快速、轻松地编写 JavaScript 代码来建立复杂而强大的应用程序。通过 NodeJS,您可以使用 JavaScript 开发多种类型的应用程序,除了 Web 应用,其灵活性更是广泛。NodeJS 将 JavaScript 引入服务器,使用 Google 的 V8 引擎。现在报名可立即获得:13.5+ 小时的优质课程、128 页可下载工作手册、源代码和资源、实用技巧和挑战、讲师的优质支持、课程更新的终身访问权限。 使用 NodeJS 的主要理由: - 瞬息万变的技能集,大型企业普遍使用。 - 对 JavaScript 熟悉的开发者过渡到 Node 的时间更短。 - 是全栈开发者处理后端和数据库的理想选择。 - JavaScript 易于入门,便于本地开发。 - 开源社区活跃,支持广泛。 - Node 包管理器(NPM)允许利用现有模块构建复杂应用,并拥有大量包可用。 - 大社区的支持,以及分享代码和获取帮助的资源。 - 可用于构建微服务。 课程内容包含: 1. Node 的安装与设置:快速介绍 NodeJS,包括基础知识和本地开发环境的设置。 2. JavaScript 基础:复习 JavaScript 编程,涵盖变量、数据类型、函数、条件语句、循环等基本概念。 3. JavaScript 异步编程:理解异步操作、事件驱动编程以及 Node.js 中的回调机制。 4. Node 模块:模块的概念与用法,包括内建模块和自定义模块。 5. Express 的 Web 应用开发:学会使用 Express 快速搭建 Web 应用。 6. MongoDB 与前端交互:如何使用 NodeJS 和 Express 连接 MongoDB,实现前端数据库的 CRUD 操作。 在课程的第六部分,学员将创建一个功能完整的 Node 应用程序,使用 Express 运行 Web 应用,连接到 MongoDB 数据库,实现前后端的完全互动。此课程适合希望深化 JavaScript 和 NodeJS 技能的开发者。
NodeJS is built for performance. NodeJS allows you to build complex and powerful application quickly and easily writing JavaScript code. NodeJS allows you to use JavaScript for not only web applications with the flexibility for a wide range of different purposes. Node brings JavaScript to the server, using Googles V8 engine. Enroll now to get instant access to:13.5+ hours of premium lessons128 page downloadable workbook Guide source code, tips, resources and challengesPremium instructor support to help you learnLifetime access to course updatesTop Reasons for using Node.JS In Demand Skillset - used by popular and large businessesNodeJS is written in JavaScript which makes the transition to Node take less time if you are already familiar with JavaScript.Perfect solution for a full stack developer dealing with backend and databasesJavaScript is easy to start with a write code and run code within your own computerEasily to develop locallyOpen Source with an active community and supportNode Package Manager can allow you to create complex applications using existing modules, NPM has a massive number of packages.Node is well supported, large size community and many forms and groups to share code and get helpCan be used to build micro servicesFinal Project in Section #6Creating a fully functional node application, that uses Express to run a web application. Connect to a MongoDB and using Node allow the frontend web application to access the Database items, full CRUD interaction.Create a web application using Express - output html file from public folderSetup a MongoDB in the cloud prep to connect using NodeJSCreate and test insert into the databaseSetup Frontend web application Add DOM event listeners to trigger requestsGenerate visual response as HTML from the Node response objectUpdate and create interactive list of database content CRUDAdd HTML updates to send requests to database.Create (POST) Read (GET)Update (PUT) Delete (DELETE)#1 Introduction to Installing and Setup of NodeThis section is a fast paced quick intro to NodeJS, and how you start using NodeJS. We discuss what NodeJS is and that it is not a programming language like JavaScript is but an interpreter and Environment for JavaScript. Node is a lightweight framework developed on Chrome's V8 engine that can be used for largeScale application development. It's scalable because the server can respond in a non-blocking way. Process object which is a global that provides information, and control over, the current Node.js process. Because its global it is always available to Node.js applications without using require()npm registry contains packages, many of which are also Node modules, or contain Node moduleDemo how to setup your development environment setting up EditorVisual Studio Code as an Editor with ready terminalCreating your first Node File and running the codeHow Node Works and examples of simple node syntaxWhere you can find out more about Node with more examples.How to debug and output content into the terminal various command line and console outputsNodeJS programming language environment REPL Read Evaluate Print LoopExamples of Node Process Object - with examplesWhat Node Packages and NPM#2 JavaScript Fundamentals quick review of JavaScript CodingExplore the fundamentals of JavaScript and writing JavaScript code within the Node. Loaded with examples about the basics of coding JavaScript. Back to the basics of JavaScript code. Because node uses JavaScript code this section will provide a refresher and quick overview of JavaScript. Designed to cover the core JavaScript required for the upcoming sections and writing Node.Variables and the Data Types. How to declare variables and examples of different Data Types.Adding Comments to codeHow to create Objects and ArrayWhat JavaScript Functions are and how they workAdvanced Functions Immediately invoked Function Expression IIFE, Arrow format for functions, JavaScript Closure exampleDifferent JavaScript operators and examples Use of conditions for logic, turthy and falsey. How to use the Ternary Operator.Examples of logic switch statement, and condition statementJavaScript loop Structures For Loop, While Loop, DO-While Loop with code examplesUse of Objects and objects with methods.JavaScript Arrays, adding, updating and removing items from an array. lots of commonly used useful array methods for array manipulation.Array and Object Values, iterating through the contents of each.Use of Template literals to set string valuesMath and Data Method examples, generating random numbers and dates in JavaScriptGlobal object in Node with the use of timeoutEvent Queue and Asynchronous operations with JavaScriptExamples of JavaScript Node Timer moduleHow to Construct promises and Resolve and Reject PromisesDebugging - use of Try, Catch, Finally which are used to handle exceptions in the JavaScript JavaScript Async and Await examples and how the order of output on promise completion.#3 JavaScript Asynchronous programming Asynchrony, in computer programming, refers to the occurrence of events independent of the main program flow and ways to deal with such events. How to add callbacks that run once a stack is complete.Covering Input Output which accesses anything outside the application. Once the application is started it will be loaded into the machine memory.Coding Examples, and practice code outputting into the console when readyEvent Driven programming which makes Node.js fairly fast compared to other similar technologies. Once the application starts it initiates its variables, declares its functions and then waits for the event to occur. The two types of API functions in Node.js, Asynchronous, non-blocking functions and Synchronous, blocking functions. The differences difference between blocking and non-blocking calls in Node.js. Blocking occurs when the execution of additional JavaScript in the Node.js process must wait until a non-JavaScript operation completes. The event loop is unable to continue running JavaScript while a blocking operation is occurring. All the IO methods in node.js provide asynchronous versions, which are non-blocking.Node keeps an event loop, which monitors when a task gets completed, which would then fire the corresponding events. Node.js overcomes the problem of blocking of I/O operations by using the event loop instead of threads.Recursive functions, Function that calls itself is called a recursive function - must have a condition to break the loop.The EventEmitter module makes possible the communication and interaction between objects in Node. EventEmitter provides properties like on and emit. The on property is used to bind a function with the event and emit property is used to fire an event.NodeJS works on the Google v8 environment utilizing JavaScript as its scripting language.How a callback works, Callback added to the background will run once stack is completeUse of setTimeout and how it works in the queue.Callback example Create a function that returns the results from another functionEvent Loop with an Example of a Recursive FunctionThe three states of promisesHow to create promises and more promises examples Node process objectNode Event EventEmitterhow to setup events and trigger emit of events #4 Node ModulesEach module in NodeJS has its own context and cannot interfere with other modules. Modules are like libraries that you can include into your application. Node.js has a set of built-in modules which you can use without any further installation like http, fs, path, and url. You can create your own modules, and easily include them in your applications. Save them locally and use within your node application as needed. Perfect to separate functionality for your application. To make properties and methods available outside the module file use the keyword exports.NPM hosts thousands of third party modules, free packages to download and use. A package in Node.js contains all the files you need for a module.Debugging - The try...catch statement marks a block of statements to try and specifies a response should an exception be thrown.How you can create your own module locallyCommonly used builtin modules like http, fs, path and urlUsing FS module to update file contents, delete files, create new filesGetting file information including file size with fs.stat()Use of node package manager NPM explore some popular node packages.Use of package.json - adding and removing packagesNode Package Manager Module lodashNode Buffers how to copy and slice buffer contentsDebugging node use of Throw, try and catch#5 Node Web Application with ExpressExpress is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. Explore how to setup a web application quickly with Express. The arguments which are available to an Express JS route handler function are request (request Object), response (response Object) and optional Next which can pass control to one of the subsequent route handlers.How to setup express and output html into a localhost webpageHow to Serve files from a static directory using ExpressValues that can be used in route filtering, pattern match and reg expRoute parameters with req.paramsExpress Route with full CRUD Create Read Update Delete MethodsReturning JSON response Use of bodyparserSending data from a frontend form to node express to output into the terminalReturning a JSON response to the frontend from a frontend request#6 MongoDB with Frontend web page interaction using Node and ExpressThe official MongoDB Node. js driver allows Node. js applications to connect to MongoDB and work with data. The driver features an asynchronous API which allows you to access method return values through Promises or specify callbacks to access them when communicating with MongoDB.How to setup a cloud base mongo Database to use in practice developmentConnecting to a mongoDBUse of mongoDB client in Node Checking a connection to the databaseHow to connect to a MongoDB and select the collections, create collectionsHow to output database collections to the frontend using Express and Node.Creating a fully functional node application that uses Express to run a web application. Connect to a MongoDB and using Node allow the frontend web application to access the Database items, full CRUD interaction.