NodeJS
- Nodejs Basic Web App Project
- Install
- NVM: Node Version Manager
- NPX
- วิธีทำ Unit Testใน Node.js ด้วย Jest ตอนที่ 1
- NPM: Node Package Manager
- NPM Library
- nodemon
- $ npm i nodemon --save
- pm2 : https://pm2.io/docs/runtime/reference/pm2-cli/
- คำสั่งที่ใช้บ่อย
- $ npm i pm2 -g
- $ pm2 start [[FileName.js]] -n "[[ProjectName]]"
- $ pm2 save (Save Processes for Restart on Boot)
- $ pm2 list
- $ pm2 stop [[name,id]]
- $ pm2 restart [[name,id]]
- $ pm2 delete [[name,id]]
- $ pm2 restart [[ProjectName|id]] --cron "*/2 * * * * *"
- $ pm2 monit
- pm2 Configuration File
- # generate a sample ecosystem.config.js
- $ pm2 init simple
- # Start all applications
- $ pm2 start ecosystem.config.js
- $ pm2 start ecosystem.config.js --only "[[app name]]"
- Note: the --only option works for start/restart/stop/delete as well
- # Stop all
- $ pm2 stop ecosystem.config.js
- # Restart all
- $ pm2 restart ecosystem.config.js
- # Reload all
- $ pm2 reload ecosystem.config.js
- # Delete all
- $ pm2 delete ecosystem.config.js
- express
- $ npm i express --save
- $ mkdir myapp
- $ cd myapp
- $ npm init –y
- $ node myapp.js
- express-session
- $ npm i express-session --save
- ejs
- $ npm i ejs --save
- i18n-express
- $ npm i i18n-express --save
- multer
- $ npm i multer --save
- passport
- $ npm i passport --save
- passport-ldapauth
- $ npm i passport-ldapauth --save
- random-int
- $ npm i random-int --save
- sequelize
- sequelize basic model
- $ npm i sequelize --save
- tedious
- $ npm i tedious --save
- xlsx
- $ npm i xlsx --save
- VSCode Extensions
- vscode-icons
- HTML Snippets
- Auto Import
- Auto Close Tag
- Power Mode
- mssql for Visual Studio Code
- Bootstrap 3 Snippets
- Bootstrap 4 Snippets
- vscode-ext-color-highlight
- Command Line Windows,Mac ที่ใช้บ่อย
- Sol Error
- Error: listen EADDRINUSE: address already in use
- Error: sql server management studio set primary key not saving
- Sequelize: Modify attributes in beforeCreate hook
- XLSX แก้ไข format date
- How to Fix “JavaScript Heap Out of Memory Error”
- การออกแบบ RESTful API - วิธีปฏิบัติที่ดี
- JSON Web Token มาตรฐานใหม่ ในการทำ Authentication
- RESTfulAPI
- เปรียบเทียบระหว่าง axios กับ Node-Fetch
- ทำความรู้จักกับ Axios — Promise based HTTP client แบบหมดเปลือก
- บันทึก