Code Monkey home page Code Monkey logo

commure-takehome-project's Introduction

Commure

 

Commure

Github top language Github language count Repository size License

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   License   |   Author


🎯 Apps Security Engineer Assessment

Automate the process of launching a container. This container should be running a service that returns some sort of HTML (“Hello World”) when browsed from localhost. Assumptions:

✨ Features

The core of the tool will be some code (Python, .Net, etc.) that can be executed and that will connect to the docker API (or other container daemon) and launch a container running apache (or web server of choice) to deliver a single web page. There is no need for dynamic input, all variables can be static.

🚀 Technologies

The following tools were used in this project:

✅ Requirements

Before starting 🏁, you need to have Git and Node installed.

🏁 Starting

# Clone this project
$ git clone https://github.com/jordanistan/commure

# Access
$ cd commure

# Install dependencies
$ pip install -r requirements.txt

# Run the project
$ python3 main.py  

# The server will initialize in the <http://localhost:80>

Output when testing

$ python3 main.py

Here is what the python script will output:

#############################################################################################################/n
Go to `http://localhost:80` in a browser to see the website!
Container ID:  d66d5afdf942e733c050cb57bd4318b9f75943a5490369c2f19adba9ea63e803
Container Status:  running
#############################################################################################################

Let's curl localhost to make sure we are seeing the HTML output of the docker container.

$ curl localhost:80

<html>
  <head>
    <title>Commure Rocks!</title> 
  </head>
    <style>
      body {
        background-image: url(https://www.commure.com/wp-content/uploads/2022/10/Hero-Image.png);
        background-size: cover;
        background-repeat: no-repeat;
      }
            .center {
        text-align: center;
      }
    </style>
  <body>
    <div class="center">
    <h1>Commure Rocks! WOot WOOt!! </h1>
    <h2> Powered by Awesomeness </h2>
    <button onclick="window.location.href = 'https://www.commure.com/';">Want to know more? Click Me</button>
    </div>
  </body>
</html>

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

Made with ❤️ by Jordan Robison

 

Back to top

commure-takehome-project's People

Contributors

jordanistan avatar snyk-bot avatar

Watchers

James Cloos avatar  avatar

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.