| set -e | |
| # Kalau repo sudah ada, pull update | |
| if [ -d "./Restfull-Api/.git" ]; then | |
| cd Restfull-Api | |
| git pull origin main | |
| else | |
| git clone https://github.com/synshin9/Restfull-Api.git | |
| cd Restfull-Api | |
| fi | |
| # Install dependencies | |
| npm install | |
| # Jalankan aplikasi | |
| npm start |