需要在node.js中转换我的PHP应用程序 [英] Need to convert my php app in node.js

查看:75
本文介绍了需要在node.js中转换我的PHP应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要将我的应用程序平台从php/apache更改为node.js,但我不知道如何继续.
我的应用程序具有类似codeigniter的结构.
我想使用express,我已经读过它的官方ste,也是初学者的教程.代码没有问题,但不了解如何适应它的结构.
请通过一些不错的链接或示例帮助我


I need to change my app's platform from php/apache to node.js , but I am not understanding how to go ahead.
My app is having structure like codeigniter.
I want to use express , I have read it's official ste , also beginner's tutorial.No problem with code but not understanding how to fit in it's structure.
Please assist me with some nice links or example

推荐答案

您甚至无法远程比较node.js和类似PHP的东西. Node.js旨在提供全栈高性能IO框架,而不是基于您选择的Web服务器的脚本语言.

You can't even remotely compare node.js to something like PHP. Node.js was designed to provide a full-stack high-performance IO framework, not a scripting language based on a web-server of your choice.

首先,您必须确保完全了解node.js范例及其基于事件的体系结构.它与ASP.NET或PHP完全不同,您实际上必须重新考虑整个编程模型.为了实现这一点,从SCRATCH学习node.js很重要!不要直接从Express或Flatiron之类的框架开始.从基础知识中学习:console.log('Hello world')

First of all, you HAVE to make sure you fully understand the node.js paradigm and it's event-based architecture. It's completely different to something like ASP.NET or PHP, you really have to rethink on the whole programming model. In order to achieve this, it's important to learn node.js FROM SCRATCH! Don't start directly with some framework like express or flatiron. Learn it from the basics: console.log('Hello world')

也许是一些不错的起点:

Maybe some good starting points:

  • http://www.hongkiat.com/blog/node-js-server-side-javascript/
  • http://www.readwriteweb.com/hack/2011/04/6-free-e-books-on-nodejs.php

其他一些链接: node.js开发人员的高级文档

这篇关于需要在node.js中转换我的PHP应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆