# mini_web_service **Repository Path**: teyr/mini_web_service ## Basic Information - **Project Name**: mini_web_service - **Description**: 小型的web服务器,纯c编写 - **Primary Language**: C - **License**: Apache-2.0 - **Default Branch**: dev-master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-09-11 - **Last Updated**: 2024-09-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mini_web_service #### 介绍 小型的web服务器,纯c编写,才用cmake来编译工程,使用Kconfig配置工程 #### 工程首次编译 ```shell # 安装环境 pip3 install kconfiglib # 工程配置 ./build.sh config # 编译 ./config.sh clean all ./config.sh build ``` #### 工程往后编译 ```shell ./build.sh build 或者 ./build.sh # 具体编译命令可通过已经指令查看 ./build.sh --help # 或者 ./build.sh -h #工程配置 ./build.sh config ``` #### 工程说明 ``` ├── config # 服务器配置路径 │   └── mini_web.conf ├── config.sh ├── html # html文件路径 │   ├── cgi_file │   │   └── cgi.py │   ├── csstest1.css │   ├── error.html │   ├── index_copy.html │   ├── index.html │   ├── pic │   │   ├── test.jpg │   │   └── test.png │   └── test.php ├── libs # 运行库路径 └── src ├── CMakeLists.txt ├── configs # 配置文件操作 │   ├── CMakeLists.txt │   ├── config.c │   ├── config.h │   ├── set_config_data.c │   └── set_config_data.h ├── debug # 调试 │   └── debug.h ├── global.h ├── http_protocol # http协议 │   ├── CMakeLists.txt │   ├── http_protocol.c │   └── http_protocol.h ├── module # 模块 │   ├── CMakeLists.txt │   ├── module.h │   └── static_module.c ├── service.c # 服务 └── tools # 工具 ├── CMakeLists.txt ├── str.c └── str.h ``` #### 代码风格 ``` 变量采用大驼峰的命名规则 结构体的命名方式: typedef struct _xxxxx_ { int 大驼峰命名; }xxxx_t; ```