{"id":27473038,"url":"https://github.com/derrix060/challange-w3","last_synced_at":"2026-01-31T07:03:37.626Z","repository":{"id":53603335,"uuid":"212023702","full_name":"derrix060/challange-w3","owner":"derrix060","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-01T21:15:22.000Z","size":15672,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T16:09:41.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derrix060.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-01T06:04:18.000Z","updated_at":"2021-03-21T21:19:51.000Z","dependencies_parsed_at":"2025-04-16T04:10:12.926Z","dependency_job_id":null,"html_url":"https://github.com/derrix060/challange-w3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/derrix060/challange-w3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrix060%2Fchallange-w3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrix060%2Fchallange-w3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrix060%2Fchallange-w3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrix060%2Fchallange-w3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derrix060","download_url":"https://codeload.github.com/derrix060/challange-w3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derrix060%2Fchallange-w3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28932604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-16T03:57:05.676Z","updated_at":"2026-01-31T07:03:37.608Z","avatar_url":"https://github.com/derrix060.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# challange-w3\n\n[![Build Status](https://travis-ci.com/derrix060/challange-w3.svg?branch=master)](https://travis-ci.com/derrix060/challange-w3)\n\n## Production\nCurrently the app is running on http://load-balancer-1083511460.ap-northeast-1.elb.amazonaws.com:5000 (This URL is the load-balancer URL that terraform that runs on Travis returns.  You can see it [here](https://travis-ci.com/derrix060/challange-w3/jobs/241042397)).\n\n\n## How to run locally\nMake sure to have docker-compose installed on your machine.  If you don't have, just run `pip install docker-compose`.\n\n1. build the container for the webapp: `docker-compose build`.\n2. Start containers (webapp and redis): `docker-compose up`\n3. That's it.  The server will be available on `http://localhost:5000/`.\n\n## Challenge\n\n### Mini Rest API (api.py)\nWrite a python3 script that starts up a RESTfull application and listen to HTTP request on port 5000. Use redis to store data.\nYou must create two endpoints /key and /key/\u003cKEY\u003e which support two verbs:\n- PUT /key: create a redis key with the key/value coming from the body. The below command must have the similar output than `redis-cli set key1 value1`.\n    - `curl -XPUT http://localhost:5000/key -H 'content-type: application/json' -d '{\"key\": \"key1\", \"value\": \"value1\"}'`. On success reply a 202 status and 500 in case of an error.\n- GET /key/\u003cKEY\u003e: will retrieve the key name and value in the following json format: `'{\"key\": \"key1\", \"value\": \"value1\"}'` with a status code of 200. If the key can not be found\nyou must reply a 404 with no data.\n\n### Dockerfile\n\n- Create a Dockerfile which is running the project created.\n- Create a docker-compose file which will allow us to bring the project up. We should be able to query the api via http://localhost:5000. Redis must not run in the same container\nthe python project\n\n### Terraform\n- Create a terraform directory which will contain the configuration files and bring the project live into Amazon ECS (Using remote state file).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderrix060%2Fchallange-w3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderrix060%2Fchallange-w3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderrix060%2Fchallange-w3/lists"}