Skip to content

21Philip/devops-minitwit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

100 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minitwit

How to run locally

Requires: docker

  1. Navigate to root of repository:
    cd path/to/repository
  2. Build docker image:
    docker compose build
  3. Run container:
    docker compose up
  4. Reached at:
    • Api: localhost:5000.
    • Web app: localhost:5001.

How to deploy

Requires: Terraform

  1. Make sure a valid terraform.tfvars is in the ./infra directory

  2. Navigate to the ./infra directory:

    cd path/to/repository/infra
  3. Deploy:

    terraform init
    terraform plan
    terraform apply

Deploy will only run automatically when there's been pushed directly to main.

Create release

Releases are only made once there has been pushed with a tag. Create a release like this:

    git tag v1.0.0
    git push origin v1.0.0

Tag must begin with v (fx v1.2.3). Pushing with a tag will not trigger deploy.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •