Hi guys,

A friend suggested that I use node.js for a new project of mine. I never heard about it before :)

So I rush to read about it, saw this module and the video, and it stunt me. This is perfect!

I managed to install node.js in my ubuntu server, but I cant find out how to install the rest: Express and Socket.Io

If you can help me to complete it, I will document the whole process and we can add it to the module README.txt file?

CommentFileSizeAuthor
#4 README.patch1.86 KBafeijo

Comments

arithmetric’s picture

Title: prerequisites » Improve documentation
Status: Active » Needs work

Hi afeijo,

The easiest way to install Express is to use npm (node package manager), which you can obtain from:
http://npmjs.org/

npm installs node packages in a central location, so they can be loaded like node's built-in libraries (using the require function).

You can also use npm to install Socket.io. However, Socket.io is also used by the client-side JavaScript code, so it must also be installed inside the module's directory so it is accessible to users.

It would be great if you could contribute some improvements to the documentation! Thanks for your interest.

afeijo’s picture

Thanks arithmetric!

I managed to install all stuff, I ran nodejs with a Hello World script and it worked :)
I have the required steps documented to install it all at a ubuntu server, I will add it to the README.txt, and I will search how to commit it

arithmetric’s picture

The easiest way to contribute your work is to post a patch with a comment on this issue. One of the maintainers can review and commit it.

afeijo’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.0-alpha4
Assigned: Unassigned » afeijo
Priority: Normal » Major
Status: Needs work » Needs review
StatusFileSize
new1.86 KB

Ok mates, here it is my patch to README.txt (my first nodejs patch :D )

Let me know if it is ok

Anonymous’s picture

Status: Needs review » Fixed

http://drupalcode.org/project/nodejs.git/commit/4512eaa

marking as fixed, but please reopen with more patches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 4512eaa on 6.x-1.x, 7.x-1.x, drupalconlondon, auth-refactor, 8.x-1.x, 8.x-1.x-head by beejeebus:
    #1095200 by afeijo: improve documentation in README.txt