os:win8.1 with Update
Keyword: nodejs,expressjs,socketio,mongodb.
1. Source code Download: https://github.com/ldlchina/ESMNodeAppTemplate
2. Server Environment configuration:
Install nodejs:http://www.nodejs.org/.
Install mongodb:http://www.cnblogs.com/ldlchina/p/3551334.html.
Open the file \lib\conf.json and configure the DB option.
Open \package.json, change name, version, and so on.
Add a route below the \routes subfolder.
All front-end files are placed under the \frontend folder.
3. Start the running server
Open cmd and switch to file directory \esmnodeapptemplate.
First boot, run cmd: "npm Install", installing node modules.
Run cmd: "node Start", Server started successfully, display: start at port:8443
4. Running Samples
Open in browser window: http://localhost:8443/samples/testsocketio.html, shown below:
Open in browser window: http://localhost:8443/samples/testfileupload.html, shown below:
NODEJS+EXPRESSJS+SOCKETIO+MONGODB Application Template