Giter Site home page Giter Site logo

devops-challenge's Introduction

BDSwiss DevOps coding challenge

You're presented with a typical web application which consists of a web server and a worker. To run the app you will need NodeJS 14+. Then you need to run npm install and finally build the app with npm run build.

Once you build the app the dist/ folder will contain the transpiled server and worker that you can start with node dist/server and node dist/worker.

The application relies on the following env variables:

  • PORT (server only) defines on which port to run
  • INTERVAL a dummy variable defining the worker interval (Optional)
  • USERNAME and PASSWORD secret to authenticated the user. (Optional)

Your objective if to package the application in a Docker container and prepare the deployment to AWS ECS using Cloud Development Kit. You're free to you any language that CDK supports that you feel most comfortable with.

The CDK code should be added to the application itself and create a task definition and ECS service for both web and the worker. The web service should scle based on the metric of your choice while worker should be a singleton and there should not be more than one wokrer running at any point in time.

Bonus: Read the INTERVAL variable from the SSM param store and the USERNAME/PASSWORD from the secrets manager.

Please submit your solution as a pull request to this repo.

devops-challenge's People

Contributors

svyatogor avatar

Watchers

 avatar Christos Alatzidis avatar  avatar

Forkers

darthenik

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.