Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.35 KB

README.md

File metadata and controls

62 lines (39 loc) · 1.35 KB

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