edit readme & change IMAGE_NAME

This commit is contained in:
Warunee Tamkoo 2024-09-05 15:18:09 +07:00
parent 0703810fa3
commit e2387a3846
2 changed files with 21 additions and 7 deletions

View file

@ -7,7 +7,8 @@ on:
workflow_dispatch:
env:
REGISTRY: docker.frappet.com
IMAGE_NAME: ehr/bma-ehr-node-service
# IMAGE_NAME: ehr/bma-ehr-node-service
IMAGE_NAME: ehr/bma-ehr-probation
DEPLOY_HOST: frappet.com
# COMPOSE_PATH: /home/frappet/docker/bma-ehr
COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-probation

View file

@ -6,16 +6,29 @@ Envelopment
- Express
- Mysql
Run Project
Install packages
```
> npm install
> npm run dev
npm install
```
Run project
```
npm run dev
```
Migration
1. สร้าง entities
1. สร้าง/แก้ไข entities
2. สร้างไฟล์ migration จาก entities และรัน update เข้า database
> npm run migration:generate src/migration/xxx (xxx คือชื่อไฟล์ migrate)
> npm run migration:run
```
npm run migration:generate src/migration/xxx (xxx คือชื่อไฟล์ migrate)
```
3. Run migration
```
npm run migration:run
```