0rangeFox / Drogon-JWT-Filter-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:C++ 83.3%Language:CMake 16.7%