Git Product home page Git Product logo

workshop-deploy-svc's Introduction

Workshop for Deployment 101 πŸ•―

Slide for workshop: Click here πŸ“½

Prerequire ✨

  • Heroku Account
  • Git

QuickstartΒ πŸ”₯

  1. Fork this repository. πŸ’Ύ
  2. Enable GitHub Action feaure by go to Action tab in repository page that you forked. 🍌
  3. 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. πŸ“¦
  4. Get API-KEY from your account. Click https://dashboard.heroku.com/account and scroll to API Key then click Reveal button. πŸ”‘
  5. 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 and HEROKU_EMAIL). πŸŽ‰
Name Description
HEROKU_API_KEY Get by step (3)
HEROKU_EMAIL Email for login heroku website
  1. 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]"
  1. Edit APIs JSON file (./backend/APIs.json) to your own information. πŸ“
  2. Commit and push your code. πŸ’Š
git add .
git commit -m '[+] Setup Finish :tada:'
git push --set-upstream origin main
  1. 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
  1. 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
  1. Enjoy your app πŸš€

Troubleshooting πŸ›

  • If you use Window OS then you have to manual replace HEROKU_BACKEND_APP_NAME and HEROKU_FRONTEND_APP_NAME for each files instead make command on step (5).
    • ./.github/workflows/deploy-backend-heroku.yml
    • ./.github/workflows/deploy-frontend-heroku.yml
    • ./frontend/.env

workshop-deploy-svc's People

Contributors

aslupin avatar thtiiz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.