Skip to content

sartim/drogon_user_service

Repository files navigation

User Service

Language Build Status

User service running on Drogon Framework which handles RBAC management. Make sure to add models.json and config.json.

Requirements

Create .env file

SECRET_KEY={SECRET_KEY}
DB_NAME={DB_NAME}
DB_USER={DB_USER}
DB_PASSWORD={DB_PASSWORD}

Setup bcrypt

On the project root:

$ git clone https://github.com/hilch/Bcrypt.cpp.git

Install jwt-cpp

$ cd build
$ cmake ..
$ make
$ sudo make install

Install OpenSSL

$ cd openssl
$ ./config shared no-ssl2
$ make
$ make install

Running server

$ cd build
$ cmake ..
$ make
$ ./drogoncore_user_service --action=run-server

Create tables

$ ./drogon_user_service --action=create-tables

Drop tables

$ ./drogon_user_service --action=drop-tables

Running with docker

$ docker compose up --build