{"id":20239996,"url":"https://github.com/thavarshan/chttp","last_synced_at":"2025-09-08T05:46:21.504Z","repository":{"id":232929128,"uuid":"658513674","full_name":"Thavarshan/chttp","owner":"Thavarshan","description":"🖥 A very crude and simple HTTP server built using C++.","archived":false,"fork":false,"pushed_at":"2023-06-26T00:39:18.000Z","size":21086,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T01:36:34.768Z","etag":null,"topics":["basic","cpp","http","server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thavarshan.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":"2023-06-26T00:36:05.000Z","updated_at":"2023-07-23T09:58:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c0f5340-f9c7-4533-b700-7821ed24d696","html_url":"https://github.com/Thavarshan/chttp","commit_stats":null,"previous_names":["thavarshan/chttp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thavarshan/chttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thavarshan%2Fchttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thavarshan%2Fchttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thavarshan%2Fchttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thavarshan%2Fchttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thavarshan","download_url":"https://codeload.github.com/Thavarshan/chttp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thavarshan%2Fchttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274140111,"owners_count":25229138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":["basic","cpp","http","server"],"created_at":"2024-11-14T08:42:35.356Z","updated_at":"2025-09-08T05:46:16.878Z","avatar_url":"https://github.com/Thavarshan.png","language":"C++","readme":"# Basic HTTP Server made using C++\n\nThis documentation provides instructions on installing, using, testing, and deploying the project.\n\n## Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [1. Installation](#1-installation)\n- [2. Usage](#2-usage)\n- [3. Testing](#3-testing)\n- [4. Deployment](#4-deployment)\n\n## 1. Installation\n\nTo install the C++ HTTP Server, follow these steps:\n\n1. Ensure that you have the following prerequisites installed:\n   - C++ compiler (GCC or Clang)\n   - Boost library (version 1.70 or higher)\n   - CMake (version 3.10 or higher)\n\n2. Clone the project repository from GitHub:\n\n```shell\ngit clone https://github.com/Thavarshan/chttp.git\n```\n\n3. Navigate to the project directory:\n\n```shell\ncd chttp\n```\n\n4. Create a build directory:\n\n```shell\nmkdir build\ncd build\n```\n\n5. Generate the build files using CMake:\n\n```shell\ncmake ..\n```\n\n6. Compile the project:\n\n```shell\nmake\n```\n\nUpon successful completion of these steps, the compiled `server` binary will be generated in the `build` directory.\n\n## 2. Usage\n\nTo use the HTTPServer, follow these steps:\n\n1. Ensure that the server is compiled by following the installation instructions.\n2. Open a terminal or command prompt.\n3. Navigate to the `build` directory:\n\n```shell\ncd chttp/build\n```\n\n4. Start the server by running the `server` binary:\n\n```shell\n./server\n```\n\n5. The server will start listening on port 8080 by default. You can modify the port number by passing it as a command-line argument:\n\n```shell\n./server \u003cport\u003e\n```\n\n6. Once the server is running, it will start accepting incoming HTTP requests.\n\n## 3. Testing\n\nTo run the test cases for the HTTP Server, follow these steps:\n\n1. Ensure that the server is compiled by following the installation instructions.\n2. Open a terminal or command prompt.\n3. Navigate to the `build` directory:\n\n```shell\ncd chttp/build\n```\n\n4. Run the `server_test` binary to execute the test cases:\n\n```shell\n./server_test\n```\n\n5. The test cases will be executed, and the test results will be displayed in the terminal.\n6. Verify that all the test cases pass without any failures or errors.\n\n## 4. Deployment\n\nTo deploy the HTTPServer project, follow these steps:\n\n1. Compile the server by following the installation instructions.\n2. Transfer the compiled `server` binary to the target deployment environment.\n3. On the target deployment environment, open a terminal or command prompt.\n4. Navigate to the directory where the `server` binary is located.\n5. Start the server by running the `server` binary:\n\n```shell\n./server\n```\n\n6. The server will start listening on the default port 8080. If needed, you can modify the port by passing it as a command-line argument:\n\n```shell\n./server \u003cport\u003e\n```\n\n7. Ensure that the necessary network configurations, such as firewalls and port forwarding, are in place to allow incoming connections to the server.\n8. Once deployed, the server will be ready to accept incoming\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthavarshan%2Fchttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthavarshan%2Fchttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthavarshan%2Fchttp/lists"}