-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[功能開發] 修改開發時 yml #46
base: main
Are you sure you want to change the base?
[功能開發] 修改開發時 yml #46
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,16 @@ pnpm install | |
pnpm dev:frontend | ||
``` | ||
|
||
## 前後端一起啟動 | ||
檢查 localhost:300 是否正常 | ||
|
||
## 啟動後端服務 | ||
|
||
先開啟 docker | ||
|
||
在根目錄輸入 | ||
|
||
``` | ||
pnpm install | ||
|
||
pnpm dev | ||
docker compose -f docker-compose.dev.yml u | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
``` | ||
|
||
檢查 localhost:8000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
"description": "", | ||
"main": "main.js", | ||
"scripts": { | ||
"test:incanGold_domain": "npx vitest --run --dir ./test/IncanGold/unit_test", | ||
"build:for_test":"npx tsc", | ||
"test:incanGold_domain": "npx vitest --run --dir ./test/IncanGold/unit_test", | ||
"build:for_test": "npx tsc", | ||
"build": "tsc -p tsconfig.prod.json", | ||
"dev": "nodemon", | ||
"dev": "npx ts-node main.ts", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 另外 CI/CD 似乎 build 不起來 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 我這邊 後端程式碼啟動 沒有報錯 🤔 為什麼~~ |
||
"start": "npx ts-node main.ts" | ||
}, | ||
"type": "commonjs", | ||
|
@@ -30,15 +30,15 @@ | |
"@types/node": "^16.11.10", | ||
"@types/supertest": "^2.0.12", | ||
"@types/uuid": "^9.0.2", | ||
"vitest": "^0.33.0", | ||
"nodemon": "^2.0.22", | ||
"dotenv": "^16.3.1", | ||
"nodemon": "^2.0.22", | ||
"socket.io-client": "^4.7.2", | ||
"supertest": "^6.3.3", | ||
"testcontainers": "^9.12.0", | ||
"ts-node": "^10.9.1", | ||
"ts-node": "^10.9.2", | ||
"tsconfig-paths": "^4.2.0", | ||
"ttypescript": "^1.5.15", | ||
"typescript-transform-paths": "^3.4.6" | ||
"typescript-transform-paths": "^3.4.6", | ||
"vitest": "^0.33.0" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Port 需要改成 3000