{"id":27361312,"url":"https://github.com/icingworld/ww-webserver","last_synced_at":"2025-04-13T01:39:11.098Z","repository":{"id":234174648,"uuid":"788385895","full_name":"Icingworld/WW-WebServer","owner":"Icingworld","description":"A simple WebServer for linux","archived":false,"fork":false,"pushed_at":"2025-02-23T14:29:56.000Z","size":151,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T01:39:06.192Z","etag":null,"topics":["cpp","epoll","linux","webserver"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Icingworld.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-18T10:08:41.000Z","updated_at":"2025-02-23T10:46:15.000Z","dependencies_parsed_at":"2024-07-15T10:39:52.088Z","dependency_job_id":null,"html_url":"https://github.com/Icingworld/WW-WebServer","commit_stats":null,"previous_names":["icingworld/webserver","icingworld/ww-webserver"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icingworld%2FWW-WebServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icingworld%2FWW-WebServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icingworld%2FWW-WebServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icingworld%2FWW-WebServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Icingworld","download_url":"https://codeload.github.com/Icingworld/WW-WebServer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654027,"owners_count":21140236,"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","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":["cpp","epoll","linux","webserver"],"created_at":"2025-04-13T01:39:10.425Z","updated_at":"2025-04-13T01:39:11.085Z","avatar_url":"https://github.com/Icingworld.png","language":"C++","readme":"# WebServer\n\nA webserver coded with c/c++ working on linux\n\n## 1. Introduction\n\nThis is a static webserver, which was coded with c/c++ on linux. It hanles `GET` requests to generate responses with resources.\n\nFiles supported:\n+ `htm`/`html`\n+ `js`\n+ `css`\n+ `jpg`/`jpeg`\n+ `png`\n+ other plain text files\n\nHere is the frame diagram of my project.\n\n![frame diagram](doc/frame.png)\n\nWith regard to log system, I use a double buffer async log system, here is the log diagram of it.\n\n![log diagram](doc/log.png)\n\n## 2. Dependences\n\n+ gcc/g++\n+ cmake\n\n## 3. How to build\n\nYou could build this project in a specific directory, such as `build`. Here is an example below.\n\n```bash\nmkdir build \u0026\u0026 cd build\n```\n\n```bash\ncmake ..\n```\nIn this process, if an error occurred with topics about cmake version, you should modify `CMakeLists.txt` and set a suitable value of `cmake_minimum_required` according to your environment. Then you're able to move on now.\n\n```bash\nmake\n```\n\n```bash\nsudo make install\n```\n\n`sudo` is neccessary because some directories like `/usr/` and `/var/` might be out of auth.\n\n## 4. How to run\n\nOnce you have built the project, you can run the excutable file `webserver` now. `sudo` is neccessary also.\n\n```bash\nsudo ./webserver\n```\n\n## 5. WebBench\n\nIf you want to test the server, `webbench` has already been included.\n\n```bash\ncd webbench \u0026\u0026 make\n```\n\nYou will get an excutable file `webbench`. Then run it with some params. More information can be found in [webbench/README.md](webbench/README.md). Here is an example, which means it simulates 200 clients using HTTP/1.1 to request the url in 30 seconds.\n\n```bash\n./webbench -c 200 -t 30 -2 http://127.0.0.1:your_port/\n```\n\n## 6. Todo\n\nSince the project is build by such a begginer like me, there are still many works to do. Here is the list.\n\n+ [ ] `post` method\n+ [ ] Structure Modify\n+ [ ] Memory Pool\n+ [ ] Performance Improvement\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficingworld%2Fww-webserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficingworld%2Fww-webserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficingworld%2Fww-webserver/lists"}