简体   繁体   中英

Creating a NodeJS + Mongo DB MVC, any ideas how to start?

我在大多数项目/初创公司中都使用PHP,我正在考虑迁移到NodeJS,因为听说它很酷,我只需要一些技巧或链接即可开始在NodeJS和MongoDb中创建MVC。

试试以下工具: Mongoose for mongodb和Express for MVC。

Express and MongoDB are pretty great. Do this. 1) Make sure you're great with JS and understand the module system in node. 2) Go take the 5-10 minute interactive tutorial over at http://mongodb.org/ 3) install node (includes npm) 4) install express as a global (npm install -g express) express --sessions --css stylus --ejs myapp

and you have pretty awesome scaffold that is super easy to understand. 5) Have fun!

As a word of advice, if you find mongoose not too friendly try using mongoJS. it's simpler and easier, but doesn't have some of the advanced features of mongoose

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM