-
Notifications
You must be signed in to change notification settings - Fork 0
Testing NodeJS, Express, Socket.io, Rest, Redis pub/sub, RabbitMQ
License
solofo-ralitera/test-nodejs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Tips Need mysql database, dump is available at ./test.sql Need redis server on localhost:6379 with default configuration Need RabbitMQ server on localhost:5672 with default configuration Install node_modules with "#npm install" Launch app with "#npm start" or "#nodemon start" or "#pm2 start bin/www" Launch worker for RabbitMQ with "#nodemon ./bin/worker.js" Install express + mongo http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ Best/bad practice http://expressjs.com/fr/advanced/best-practice-performance.html https://blog.risingstack.com/node-js-best-practices/ https://www.toptal.com/nodejs/top-10-common-nodejs-developer-mistakes https://github.com/alanjames1987/Node.js-Best-Practices https://devcenter.heroku.com/articles/node-best-practices Promise https://www.promisejs.org/ https://60devs.com/best-practices-for-using-promises-in-js.html socket http://socket.io/get-started/chat/ http://stackoverflow.com/questions/24609991/using-socket-io-in-express-4-and-express-generators-bin-www http://gulivert.ch/create-a-chat-app-with-nodejs-express-and-socket-io/ Module export https://www.sitepoint.com/understanding-module-exports-exports-node-js/ Redis https://github.com/NodeRedis/node_redis Express-session https://www.npmjs.com/package/express-session Optimization http://www.kinderas.com/technology/2014/2/9/making-a-fast-website https://github.com/dmauro/node-jade-compress https://www.npmjs.com/package/express-istatic -------------------------------------------------------------- # npm install express-generator -g # express node-expressgenerator1 install dependencies: $ cd node-expressgenerator1 && npm install run the app: $ DEBUG=node-expressgenerator1:* npm start # cd node-expressgenerator1/ # npm install npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated [email protected]: Deprecated, use jstransformer [email protected] /var/www/html/node-expressgenerator1 ├─┬ [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] │ └── [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] │ │ ├── [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] │ │ └── [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] │ │ │ │ │ ├─┬ [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] # npm install pm2 -g # npm install nodemon -g
About
Testing NodeJS, Express, Socket.io, Rest, Redis pub/sub, RabbitMQ
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published