什么是Express.js?

本文翻译自:What is Express.js?

I am a learner in Node.js . 我是Node.js的学习者。

  1. What is Express.js ? 什么是Express.js
  2. What is the purpose of it with Node.js? Node.js的目的是什么?
  3. Why do we actually need Express.js? 为什么我们实际上需要Express.js? How it is useful for us to use with Node.js? 与我们一起使用Node.js有什么用?
  4. What is Redis ? 什么是Redis Does it come with Express.js? Express.js附带吗?

#1楼

参考:https://stackoom.com/question/qw2L/什么是Express-js


#2楼

This is over simplifying it, but Express.js is to Node.js what Ruby on Rails or Sinatra is to Ruby . 这过于简化了,但是Express.jsNode.js来说就像Ruby on RailsSinatraRuby一样

Express 3.x is a light-weight web application framework to help organize your web application into an MVC architecture on the server side. Express 3.x是一个轻量级的Web应用程序框架,可帮助您将Web应用程序组织到服务器端的MVC架构中。 You can use a variety of choices for your templating language (like EJS , Jade , and Dust.js ). 您可以为模板语言使用多种选择(例如EJSJadeDust.js )。

You can then use a database like MongoDB with Mongoose (for modeling) to provide a backend for your Node.js application. 然后,您可以将MongoDB之类的数据库与Mongoose一起使用 (用于建模)为Node.js应用程序提供后端。 Express.js basically helps you manage everything, from routes, to handling requests and views. Express.js基本上可以帮助您管理从路由到处理请求和视图的所有内容。

Redis is a key/value store -- commonly used for sessions and caching in Node.js applications. Redis是一个键/值存储-通常用于Node.js应用程序中的会话和缓存。 You can do a lot more with it, but that's what I'm using it for. 您可以使用它做更多的事情,但这就是我使用它的目的。 I use MongoDB fo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值