/Drogon-JWT-Filter-example

A simple project to serve as an example of how to implement an JWT filter on Drogon framework.

Primary LanguageC++MIT LicenseMIT

Drogon JWT Filter example

A simple project to serve as an example of how to implement an JWT filter on Drogon framework.


Endpoints


How to build the project

Requirements:

Everything you need to setup this example is here! Just follow what is written there and then you can come back here.

Build:

git clone https://github.com/0rangeFox/Drogon-JWT-Filter-example.git
cd Drogon-JWT-Filter-example
git submodule update --init
cd libraries/drogon/
git submodule update --init
cd ../../
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make && sudo make install

Execute:

Make an copy of config.json inside to build folder, and make your necessary changes and start the program.

Frequently Asked Questions (FAQ)

  • Q: When I try to compile this project give me error on CMakeLists telling OpenSSL wasn't found but I have it installed:
  • A: The solution is here.