Slide for workshop: Click here 📽
- Heroku Account
- Git
- Fork this repository. 💾
- Enable GitHub Action feaure by go to
Action
tab in repository page that you forked. 🍌 - Create Heroku Project on your account and note your app name for use in step (5). You have to create two project for frontend-service and backend-service. 📦
- Get API-KEY from your account. Click
https://dashboard.heroku.com/account
and scroll toAPI Key
then clickReveal
button. 🔑 - Create secret variable in forked repository by go to repository page>Setting>Secret then click
New repository secret
button. You have to add two secret variable (HEROKU_API_KEY
andHEROKU_EMAIL
). 🎉
Name | Description |
---|---|
HEROKU_API_KEY | Get by step (3) |
HEROKU_EMAIL | Email for login heroku website |
- Run this command by replace
[HEROKU_BACKEND_APP_NAME]
and[HEROKU_FRONTEND_APP_NAME]
in your own information. If you use Window OS then scroll to end of page for read alternative replace variable. 💣
make initial-app HEROKU_BACKEND_APP_NAME="[HEROKU_BACKEND_APP_NAME]" HEROKU_FRONTEND_APP_NAME="[HEROKU_FRONTEND_APP_NAME]"
- Edit APIs JSON file (
./backend/APIs.json
) to your own information. 📝 - Commit and push your code. 💊
git add .
git commit -m '[+] Setup Finish :tada:'
git push --set-upstream origin main
- Deploy your backend service by merge code to
release-backend
branch. 🫖
git checkout -b release-backend
git pull origin main
git push --set-upstream origin release-backend
- Deploy your frontend service by merge code to
release-frontend
branch. 🍙
git checkout -b release-frontend
git pull origin main
git push --set-upstream origin release-frontend
- Enjoy your app 🚀
- If you use Window OS then you have to manual replace
HEROKU_BACKEND_APP_NAME
andHEROKU_FRONTEND_APP_NAME
for each files insteadmake
command on step (5).- ./.github/workflows/deploy-backend-heroku.yml
- ./.github/workflows/deploy-frontend-heroku.yml
- ./frontend/.env