cd app
app>npm install --force
wait install successfully
app> npm audit --force
successfully
npx expo-doctor
npx expo install --check
go-api>go build -o <file build name>
sudo systemctl daemon-reload
sudo systemctl restart <file service name>
sudo journalctl -u <file service name> -f
sudo systemctl status <file service name>
sudo nano /etc/systemd/system/<file service name>
[Unit]
Description=Go API Service
After=network.target
[Service]
ExecStart=/path/to/your/go/api/binary
Restart=always
User=your-username
Group=your-groupname
WorkingDirectory=/path/to/your/api
[Install]
WantedBy=multi-user.target
| Description | Api Path | Method |
|---|---|---|
| สมัครสมาชิก | api_host/register | POST |
| เข้าสู่ระบบ | api_host/login | POST |
| รับผู้ใช้ทั้งหมด(ช่าง) | api_host/auth/get_all_user | GET |
| รับข้อมูลผู้ใช้ | api_host/auth/get_user_info | GET |
| อัพโหลดรูปโพสต์ | api_host/auth/upload_image_post | POST |
| อัพโหลดรูปโปรไฟล์ | api_host/auth/upload_image_profile | POST |