Node. js Blog App with Ejs & MongoDB

所在平台: Udemy

课程主页: https://www.udemy.com/course/nodejs-blog-app-with-ejs-mongodb/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** 使用 Ejs 和 MongoDB 构建 Node.js 博客应用 **课程概要:** 本课程将带您从 JavaScript 基础知识入手,深入了解 Node.js,并从头开始构建您的第一个服务器。您将学习如何处理请求 (req) 和响应 (res),并通过 EJS 模板引擎优化页面结构,实现代码的精简与易维护。 课程核心内容包括: * **Node.js 服务器构建与请求/响应处理:** 学习创建 Node.js 服务器,理解和管理 HTTP 请求与响应。 * **EJS 模板引擎应用:** 将服务器渲染的页面重构为 EJS 模板,优化前端视图,提升开发效率。 * **MongoDB 数据库集成:** 连接 MongoDB 数据库,学习 CRUD(创建、读取、更新、删除)操作,并通过 `test.js` 文件进行后端命令测试。 * **数据展示与后端集成:** 将数据库中的博客文章数据展示在应用中。 * **代码组织与结构化:** 将项目代码按照控制器 (controllers)、模型 (models) 和中间件 (middleware) 进行分类,实现清晰的代码结构。 * **用户认证系统:** 实现用户注册、登录和注销功能,并确保用户身份验证后才能创建博客文章。 * **文本编辑器集成:** 为博客文章创建页面添加富文本编辑器功能。 * **Heroku 部署:** 将完成的应用部署到 Heroku,实现线上访问。 * **部署前代码回顾与问题排查:** 在部署前,课程将回顾关键文件内容,帮助您理解代码并解决可能遇到的错误。 **学习成果:** 完成本课程后,您将能够: * 掌握 Node.js 和 MongoDB 结合进行 CRUD 操作的原理和实践。 * 从零开始独立构建和开发自己的 Web 应用。 **讲师期待:** 完成课程后,讲师非常期待看到学员们独立完成的作品,并鼓励与他分享!

课程评论(0条)

课程详情

In this course I will start off with covering the basics of JavaScript, and then go into Node.js, where we will create our first server. Upon doing that, we will handle req and res to our pages. Later we will refactor them to EJS and reconfigure the layout to make it easier for coding and condense the code on each file. After that, we connect to MongoDB and cover the CRUD method in the app where we send commands to the backend in a test.js file and see the results in our console.We connect the backend to our app to show data for our blog post, and put our code into a controllers, models, and middleware folders to organize our code. We create a user sign up - login and logout function, and where the user must be validated to created a post. Lastly, we add a text editor for the create post page and deploy it to Heroku. Prior to deployment, I cover what were on the files we created in case you may have missed anything or you are getting errors. After taking this course you will have an understanding of how to engage CRUD operations with Node and MongoDB, then create your own apps from scratch. Whenever you do create one, please share with me, I'd love to see how it looks!!!

课程标签

0人关注该课程

主题相关的课程