Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sartim/drogon_user_service
User service using Drogon Framework
https://github.com/sartim/drogon_user_service
cplus cpp drogon drogonframework rest-api
Last synced: about 6 hours ago
JSON representation
User service using Drogon Framework
- Host: GitHub
- URL: https://github.com/sartim/drogon_user_service
- Owner: sartim
- Created: 2023-04-11T20:03:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-04T14:58:08.000Z (2 months ago)
- Last Synced: 2024-09-05T20:28:46.403Z (2 months ago)
- Topics: cplus, cpp, drogon, drogonframework, rest-api
- Language: C++
- Homepage:
- Size: 152 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User Service
[![Language](https://img.shields.io/badge/language-cpp-green.svg)](https://github.com/sartim/drogon_user_service)
[![Build Status](https://github.com/sartim/drogon_user_service/workflows/build/badge.svg)](https://github.com/sartim/drogon_user_service)User service running on Drogon Framework which handles RBAC management. Make sure to add models.json and config.json.
## Requirements
* [Drogon](https://github.com/drogonframework/drogon)
* [PostgreSQL](https://www.postgresql.org)
* [JWT-CPP](https://github.com/Thalhammer/jwt-cpp)
* [Bcrypt](https://[email protected]:hilch/Bcrypt.cpp.git)
* [OpenSSL](https://github.com/openssl/openssl.git)## 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