---
# System prepended metadata

title: 串接 AWS
tags: [接案]

---

# 串接 AWS 

## AWS 裝上前端專案步驟如下
### Step1 
```
git clone 專案路徑
```
project 必須設為 public 
> private 會遇到 authentication fail issue
> 
### Step2 確認是否有 clone 成功
有成功會出現圖片資料夾
![](https://hackmd.io/_uploads/ByiPAlS2n.png)


### Step3 Install NVM
```
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash 
```

verify whether install nvm
```
command -v nvm
```

nvm install node version
```
nvm install v18.12.1
```

### install Npm
```
sudo apt install npm
```

### Reference 
https://github.com/nvm-sh/nvm#installing-and-updating


---
## 起 image-server 指令
### 開啟 image-folder
![](https://hackmd.io/_uploads/HkxrxHbBn2.png)



### 終端機輸入以下指令
> 新指令(感謝我龍師傅)
```
docker logs image-server_image_container_1
```

> 舊的指令
```
source ~/.bashrc
conda activate image
python app.py 
```

有看到下面這個應該就是成功
![](https://hackmd.io/_uploads/SkKkUWBn2.png)


### postman 測試
1. import Ryan 提供 postman json file
2. domain port 置換成 `9527`
![](https://hackmd.io/_uploads/HJdFwWSh2.png)


### 刪除圖片路徑


 
