<?xml version="1.0" encoding="UTF-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Angel's Blog</title>
	<link rel="alternate" type="text/html" href="https://angelcool.net/sphpblog/blog_index.php" />
	<modified>2026-04-27T00:21:39Z</modified>
	<author>
		<name>Angel</name>
	</author>
	<copyright>Copyright 2026, Angel</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.7.0">SPHPBLOG</generator>
	<entry>
		<title>Node.js: Creating a new project with Express framework</title>
		<link rel="alternate" type="text/html" href="https://angelcool.net/sphpblog/blog_index.php?entry=entry150209-064513" />
		<content type="text/html" mode="escaped"><![CDATA[<pre>// install express globally<br />$npm install -g express-generator<br /><br />// create a new project using handlebars for views<br />$express -hbs &quot;node-chat&quot;<br /><br />// cd into &quot;node-chat&quot; and execute:<br />$npm install<br /><br />// add suport for socket.io<br />$npm install socket.io --save<br /><br /><br />// output versions<br />[acool@localhost node-chat]$ node --version<br />v0.10.33<br />[acool@localhost node-chat]$ npm --version<br />1.3.6<br />[acool@localhost node-chat]$ express --version<br />4.11.1<br /><br />// make sure daemon (dev only) is installed and run:<br />// (I think you can also do npm start or node bin/www)<br />[acool@localhost node-chat]$ nodemon bin/www <br /><br />// finally go to browser and type <a href="http://localhost:3000" >http://localhost:3000</a><br />// ...socket.io sample to come.<br /></pre>]]></content>
		<id>https://angelcool.net/sphpblog/blog_index.php?entry=entry150209-064513</id>
		<issued>2015-02-09T00:00:00Z</issued>
		<modified>2015-02-09T00:00:00Z</modified>
	</entry>
</feed>
