Flask (python)
JWT
bcrypt
Docker
MySQL
Terraform (AWS)
Ansible
Nginx
Sanjiv Kannaa J
$ 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
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)
- setup the EC2 instances
$ terraform init
$ terraform apply -var mysql_username="your_username" -var mysql_password="your_password"
-
terraform output will contain the DB endpoint, update it in the .env file
-
setup ansible inventory (and do dns mapping)
$ ansible-playbook -i inventory.ini playbook.yml
now visit the domain
$ terraform destroy