Revision control
Copy as Markdown
# C++ Qt Server
## Qt HTTP Server based on the Qhttpengine
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
To see how to make this your own, look here:
- API version: 1.0.0
- Generator version: 7.12.0-SNAPSHOT
## QHTTPEngine
[](https://travis-ci.org/nitroshare/qhttpengine)
[](http://opensource.org/licenses/MIT)
Simple set of classes for developing HTTP server applications in Qt.
### Documentation
To learn more about building and using the library, please visit this page:
### Viewing the code
You can view the code using an editor like Microsoft Visual Studio Code or you can
Use QtCreator and browse for the root CMakeLists.txt and load it as a project
### Build with make
Install the tools [Linux/Debian]
```shell
sudo apt install cmake build-essential libssl-dev qtbase5-dev qtbase5-dev-tools git curl
```
To build, go to the `server` folder
```shell
make
```
To run the server
```shell
./build/src/cpp-qt-qhttpengine-server &
```
To override the default port via the command line, provide the parameters `port` and `address` like below
```shell
cpp-qt-qhttpengine-server --port 9080 --address 127.0.0.1
```
or
```shell
cpp-qt-qhttpengine-server -p 9080 -a 127.0.0.1
```