ติดตั้ง git ตาม website https://git-scm.com/
ติดตั้ง nodejs ตาม website https://nodejs.org/
ติดตั้ง package ที่จำเป็น
npm install typescript ts-node pm2 nodemon -g
สร้าง folder api
cd api
git clone https://github.com/superpck/hisgateway-nrefer-and-is his_api
cd his_api
npm install
npm audit fix --force
copy file config.default ตั้งชื่อ file เป็น config
แก้ไขข้อมูลใน file config
tsc -> compile source code
nodemon
open browser and go to http://localhost:<port ที่กำหนดใน config>
pm2 start --interpreter ts-node src/app.ts his_gateway
git add .
git commit -m "คำอธิบายสิ่งที่แก้ไข"
git push
กรณี push ไม่ได้ ให้ทำการ git pull ก่อน
- อ.สถิตย์ เรียนพิศ https://github.com/siteslave
- mssql ให้ติดตั้ง version 4.1.0 เท่านั้น "npm install --save [email protected]"
https://docs.google.com/document/d/1jKXwA12WNyRr-phcjQXRLz9xTJz5BreTPDBy2saWpOs