本文翻译自:What is Express.js?
I am a learner in Node.js . 我是Node.js的学习者。
- What is Express.js ? 什么是Express.js ?
- What is the purpose of it with Node.js? Node.js的目的是什么?
- Why do we actually need Express.js? 为什么我们实际上需要Express.js? How it is useful for us to use with Node.js? 与我们一起使用Node.js有什么用?
- 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.js对Node.js来说就像Ruby on Rails或Sinatra对Ruby一样 。
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 ). 您可以为模板语言使用多种选择(例如EJS , Jade和Dust.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