Skip to content

k-nero/DrogonWebApi

Repository files navigation

DrogonWebApp

Build Test

Installation

Install Dependencies with vcpkg.

In case you don't have vcpkg installed, you can install it from here and add vcpkg to your PATH. Then navigate to the root directory and run the following command to install the dependencies.

$ vcpkg x-update-baseline
$ vcpkg install

Note: If you are using Visual Studio or MSBuild, please skip this step and enable the vcpkg integration in your IDE. Learn more about manifest mode here

This project is using SQLAPI++ for database connection, you can download it from here. After downloading, extract the files and copy the include and lib folders to the root directory of the project and copy the dll files to the build output directory.

Database

  • Currently using MSSQL, the connection param can be found in config.ini

Build

  • Create file config.ini in DrogonWebApp/DrogonServer
  • Example config.ini:
[database]
type = sqlserver
server = (localdb)\MSSQLLocalDB@Drogon
username = sa
password = 12345
[bcrypt]
secret = secret
[redis]
host = 192.168.59.128
password = sysadmin
  • Create private_key.pem and public_key.pem in DrogonWebApp/DrogonServer for JWT
  • Create private.key and certificate.crt in DrogonWebApp/DrogonServer to use Https