/devops_challenge

Primary LanguageJavaScriptMIT LicenseMIT

DevOps Challenge

  • This repo contains code for a multilayer application.

  • The application overview is as follows: web <=> api <=> db

  • There is an api directory and another web, you should dock the application in the best possible way.

  • Write a recipe with the tool of your choice (ansible or terraform) to build the environment and run the application in an automated way.

Running

  • The idea to test locally is to just run 'docker-compose up'
  • Access url localhost: 8080

Evaluation

  • It will count the quality of 'Dockerfile', 'docker-compose.yml'
  • Extra points if you use terraform and are in good practice
  • Extra points if you use ansible and are well structured

Solution

  • Fix postgres connection on api/app.js
  • Add dotenv library across the code
  • Dockerize both api and frontend
  • Create a docker-compose file
  • Terraform AWS(with output for ansible) and GCP
  • Ansible make all configurations necessary to deploy the application
  • Simple Makefile