Code Monkey home page Code Monkey logo

devops-coding-challenge's Introduction

KMK DevOps Coding Challenge App

This is small flask app. This app will show request headers and client ip address in JSON format.

Installation

Clone the repository, then install required python modules (see requirements.txt). Then, you can run this app using this command

./app.py

It will listen on all interface on port 5000.

Notes: This method is not suitable for production as it doesn’t scale well and by default serves only one request at a time. Read Flask documentation for deployment in production

Example output

Using curl, assuming app listen on ip address 10.10.10.20. and curl running on host with ip address 10.10.10.1

curl http://10.10.10.20:5000/

output

{
  "headers": {
    "Accept": "*/*",
    "Content-Length": "",
    "Content-Type": "",
    "Host": "10.10.10.20:5000",
    "User-Agent": "curl/7.51.0"
  },
  "origin": "10.10.10.1"
}

devops-coding-challenge's People

Contributors

cecepm avatar

Watchers

Mohan Krishnan avatar Mike Mazur avatar Asif Mujteba avatar  avatar Ageng Mufti Syafii H avatar ɐʇɹɐʎpıʍ ɥıןɐƃ avatar Frizky avatar Hafiz Badrie Lubis avatar Agung Prasetyo avatar Moch Nasrullah R avatar Yap Sok Ann avatar James Cloos avatar Pubudu Perera avatar Budiwijaya avatar Handry Wahyudi avatar  avatar Muhammad Hallaj bin Subery avatar Andy Librian avatar zhuodong avatar Ikhsan Noor Rosyidin avatar Rindang Septyan avatar deni zakya avatar Bobby avatar Meirza avatar Maciej Piotrowski avatar  avatar Andriana Khadafi avatar  avatar Dimas Saputra avatar Kadek Byan Prihandana Jati avatar Doddy Tri Hutomo avatar Ihsanuddin Rowther avatar Yosfik Alqadri avatar Rizkie Yudha Pratama avatar  avatar  avatar  avatar Lindi avatar Ridho Adya Pangestu avatar Luqman Abdul Mushawwir avatar Wisnu Alamsyah avatar  avatar Sugandi avatar Dwiyasko Wicaksono avatar Harryy avatar Junita avatar Fernando Simbolon avatar  avatar inu pragantha avatar Burhan Dewantara avatar Gemala avatar Kevin Prathama avatar Herfan Yusano avatar Lukmanul Hakim avatar Muh Iqbal avatar Hofid Mashudi avatar William Salim avatar Maikel Chandika avatar Sentosa avatar Azizah Ira avatar Dewi Jayanti avatar Miftah Fathudin avatar Hadrian B avatar Renaldy avatar  avatar  avatar  avatar  avatar  avatar  avatar Preeti Ramachandran avatar Rencana Tarigan avatar michael himawan handoko avatar Fajri Koto avatar codepaw avatar danielfablius avatar Pinto Karsanda avatar  avatar andrifashbir avatar Yusuf Irwandi avatar Alvin A Hutama avatar Ade Sueb avatar Rian Putra Mantovani avatar Muhammad Rusdyanto avatar Andre Prasetya avatar Chau avatar Amin Endah Sulistiawati avatar Marcel Tumboimbela avatar Reky Rolen Kencana avatar Adhitya Surya Pratama avatar Maniz avatar Ajay Manek avatar  avatar Brook avatar Stanley Fok avatar Bryce Lee avatar Kat avatar  avatar Yayan Kuswara avatar

Forkers

pbuditi mdashaikh

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.