Node,express development environment, such as installation if it has been done.
[Email protected]:~/projects/nodejs$ express-e chattingnode create:chattingnode create:chattingnode/ Package.json create:chattingnode/app.js create:chattingnode/public create:chattingnode/public/ JavaScripts create:chattingnode/public/images create:chattingnode/public/stylesheets Create: Chattingnode/public/stylesheets/style.css create:chattingnode/routes create:chattingnode/routes/ Index.js create:chattingnode/routes/users.js create:chattingnode/views create:chattingnode/ Views/index.ejs create:chattingnode/views/error.ejs create:chattingnode/bin Create:chattingnode /bin/www Install dependencies: $ cd chattingnode && NPM install run the app: $ debug= My-application./bin/www
Then
<pre name= "code" class= "java" >[email protected]:~/projects/nodejs/chattingnode$ cd Chattingnode && NPM Install
[email protected] node_modules/debug[email protected] node_modules/static-favicon[email protected ] node_modules/ejs[email protected] node_modules/morgan└──[email protected][email protected] Node_ Modules/cookie-parser├──[email protected]└──[email protected][email protected] Node_modules/ Body-parser├──[email protected]├──[email protected] ([email protected]) └──[email protected] ([email protected]) [Email protected] node_modules/express├──[email protected]├──[email protected]├──[email Protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected] ├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected] ([email protected]) ├──[email protected] ([email Protected]) ├──[email protected] ([email protected], [email proteCTED]) └──[email protected] ([email protected])
[Email protected]:~/projects/nodejs/chattingnode$ lsapp.js bin node_modules package.json Public Routes views
[Email protected]:~/projects/nodejs/chattingnode$ node/bin/wwwget/200 10ms-207bget/stylesheets/style.css 6ms- 110b
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvzwrhz2fybgk=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
Project source code address: Https://github.com/edagarli/chattingnode
can be followed. will be updated continuously after that.
Socket.io+angular.js+express.js do a chat application (i)