Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.05 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.05 KB

ReliaBank

Tech-Stack

Flask (python)
JWT
bcrypt
Docker
MySQL
Terraform (AWS)
Ansible
Nginx

Contributors

Sanjiv Kannaa J

How To Run (local)

$ git clone https://github.com/sanjivkannaa/reliabank.git
$ cd reliabank
$ cp .env.example .env

setup .env [make sure to set strong username and password]

$ docker-compose up -d

now visit localhost:5000

How To Run (AWS using terraform)

Make sure to have terraform and aws-cli installed and setup (aws creds must be stored in the default location. ref: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-quickstart.html)

  1. setup the EC2 instances
$ terraform init
$ terraform apply -var mysql_username="your_username" -var mysql_password="your_password"
  1. terraform output will contain the DB endpoint, update it in the .env file

  2. setup ansible inventory (and do dns mapping)

$ ansible-playbook -i inventory.ini playbook.yml

now visit the domain

To destroy AWS infrastructure

$ terraform destroy