npm -g install babel-cli
npm install
npm run build
npm start
- 5001 development sails server
- 5002 development react admin dev server
- 5011 production sails server
EJS JS/CSS Injection Issues
need to set cors.origin
ex:
cors.origin: 'http://cargo.trunksys.com, https://cargo.trunksys.com',
// date only
<%=: row.createdAt | formatDate %>
// date time
<%=| row.createdAt | formatDateTime %>
// 標準前台功能
controllers/*Controller.js
// 標準 API 功能
controllers/api/*Controller.js
// 後台功能
controllers/admin/*Controller.js
// 站台專屬客製前台功能以 labfnp 為例
controllers/labfnp/*Controller.js
// 站台專屬客製 API 功能
controllers/api/labfnp/*Controller.js