Giter Site home page Giter Site logo

sahinakkaya / requests-dashboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 85 KB

A simple web application that shows requests for an api over time made for Kartaca Rise Through The Ranks program.

License: GNU General Public License v3.0

Dockerfile 0.63% Python 81.86% CSS 5.44% HTML 12.07%

requests-dashboard's Introduction

requests-dashboard

This is a simple web application that shows requests for an api over time.

Prerequisites

Build and run

cd into project directory and run:

docker-compose up --build

Usage

There are 4 different endpoints for GET, POST, PUT and DELETE requests. They are

respectively. You can use a command line tool like httpie to perform requests. Example:

http PUT http://127.0.0.1:8000/api/put/
http http://127.0.0.1:8000/api/get/

The dashboard is available at http://127.0.0.1:8080. Note that its port is different even though it's same application. You can continue using port 8000 if you want but it will cause dashboard to freeze when you perform requests because the application sleeps before responding to the requests.

Sample Screenshots

alt text alt text

Notes

  • Secret key: gAAAAABgUJqwMzZTO_g2GqgORZD_LRGgIDVhfkX4Tn4pqnkx9awMU2pwZywJkcm7CmV791oNFeeiKp1WEruAHnEOBqqdS89JAzMfAvInFBaWnT5CzluI1kBElaLRUVc6U9S4VxfpJi9sZ0PCrfwaFrKzZzFENbMrG8SiAIsWPh0QEVgiQApPfKv_CcBhn-pVPFzi7gocBpn3

  • Getting the challenge content: You can find the code that I wrote to get the challenge content inside challenge_content. It's is not the best code but it gets the job done and I won't ever use it anymore so it's OK.

  • Sometimes producer and consumer doesn't start. It seems to occur randomly when the project is first built. I couldn't fix this because there is no log at docker logs producer, and I don't know a way to reproduce this every time. As a workaround, you can re-run the build command if this happens to you.

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.