{"id":18637557,"url":"https://github.com/justin-marian/flask-db-requests","last_synced_at":"2026-05-01T04:37:07.665Z","repository":{"id":228606188,"uuid":"773531569","full_name":"justin-marian/flask-db-requests","owner":"justin-marian","description":"Task management app. Server storing tasks and providing endpoints for interaction. Users interact via specified command line interface.","archived":false,"fork":false,"pushed_at":"2024-03-19T21:18:15.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T13:52:40.624Z","etag":null,"topics":["client-server","flask","json-server","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justin-marian.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}},"created_at":"2024-03-17T22:42:16.000Z","updated_at":"2024-03-19T21:26:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"5530f292-cc53-4b8e-9790-17415cc4ba5a","html_url":"https://github.com/justin-marian/flask-db-requests","commit_stats":null,"previous_names":["justin-marian/flask-db-requests"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/justin-marian/flask-db-requests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-marian%2Fflask-db-requests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-marian%2Fflask-db-requests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-marian%2Fflask-db-requests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-marian%2Fflask-db-requests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justin-marian","download_url":"https://codeload.github.com/justin-marian/flask-db-requests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-marian%2Fflask-db-requests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32485297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["client-server","flask","json-server","python"],"created_at":"2024-11-07T05:36:44.591Z","updated_at":"2026-05-01T04:37:07.634Z","avatar_url":"https://github.com/justin-marian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask DB Requests\r\n\r\nThis is a ***straightforward*** application consists of a `server` (**stores information about tasks**) and a `client` (**that makes requests to the server to query/modify the database**).\r\n\r\nTo interact with the application, refer to the provided endpoints and their functionalities documented in the task description table. You can use the client script or tools like `Postman` to test the server endpoints.\r\n\r\n**Server URL:** [http://127.0.0.1:5000/](\u003chttp://127.0.0.1:5000/\u003e)\r\n\r\n**Type of (`Operations` - `Requests`):**\r\n\r\n| **Operation**           | URL                                          |**Type**| Request Body                  | Response                     |\r\n|:-----------------------:|----------------------------------------------|:------:|-------------------------------|------------------------------|\r\n| **Sanity**              | [.../sanity](\u003chttp://127.0.0.1:5000/sanity\u003e)               |**GET** | `{}`                          | `{\"status_code\": \"200\"}`     |\r\n| **Add Task**            | [.../add](\u003chttp://127.0.0.1:5000/add\u003e)                 |**POST**| `Task ObjectNode`                 | `{\"status_code\": \"200\"}`  |\r\n| **Print Tasks**          | [.../print](\u003chttp://127.0.0.1:5000/\u003e)              |**GET**| `{}`                          | **JSON** with all tasks   |\r\n| **Print Completed Tasks**| [.../print/completed](\u003chttp://127.0.0.1:5000/print/completed\u003e)    |**GET**| `{}`                          | **JSON** with completed tasks |\r\n| **Delete Task**         | [.../delete/id](\u003chttp://127.0.0.1:5000/delete/id\u003e)      |**DELETE**| `{}`                          | `{\"status_code\": \"200\"}`     |\r\n| **Delete All Tasks**     | [.../delete/all](\u003chttp://127.0.0.1:5000/delete/all\u003e)       |**DELETE**| `{}`                          | `{\"status_code\": \"200\"}`     |\r\n| **Update Task**          | [.../update/id](\u003chttp://127.0.0.1:5000/update/id\u003e)        |**POST**| `{}`                          | `{\"status_code\": \"200\"}`     |\r\n| **Update Task Assignee** | [.../update/id/name](\u003chttp://127.0.0.1:5000/update/id/name\u003e)     |**POST**| `{}`                          | `{\"status_code\": \"200\"}`     |\r\n| **Save**                 | [.../save](\u003chttp://127.0.0.1:5000/save\u003e)               |**POST**| `{}`                          | `{\"status_code\": \"200\"}`     |\r\n| **Load**                 | [.../load](\u003chttp://127.0.0.1:5000/load\u003e)               |**POST**| `{}`                          | `{\"status_code\": \"200\"}`     |\r\n\r\n**Note:** `save` and `load` operations save and load the state of the database respectively in a JSON file `database.json`.\r\n\r\n## Usage and Setup\r\n\r\n### Windows\r\n\r\n1. Open a terminal and follow these steps:\r\n   - Create a Virtual Environment: `py -3 -m venv venv`\r\n   - Activate the Virtual Environment: `venv\\Scripts\\activate`\r\n   - Install Flask: `pip install Flask`\r\n   - Install Requests: `pip install requests`\r\n\r\n### Linux/Mac OS\r\n\r\n1. Open a terminal in `flask-db-requests` and follow these steps:\r\n   - Create a Virtual Environment: `python3 -m venv venv`\r\n   - Activate the Virtual Environment: `chmod +x venv/bin/activate` then `./venv/bin/activate`\r\n   - Install Flask: `pip install Flask`\r\n   - Install Requests: `pip install requests`\r\n\r\n### Running the Application\r\n\r\n1. Once the virtual environment is set up, use the following commands to run the server and client:\r\n   - Start the Server: `python3 -m flask --app server run`\r\n   - Start the Client: `python3 client.py`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin-marian%2Fflask-db-requests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustin-marian%2Fflask-db-requests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin-marian%2Fflask-db-requests/lists"}