/uni_bd2_backend

C++20 CRUD REST back-end with SwaggerUI integration. Based on Oat++. University course project - Databases 2

Primary LanguageC++Apache License 2.0Apache-2.0

Administrative Regions of The Czech Republic - Databases 2 Project

Created by:

  • Oskar Gusta (back-end - C++ + SQL)
  • Konrad Skowron (front-end, separate repository)

Summary

This server is designed to deliver a CRUD REST service for a project centered around organizing and presenting in a searchable, visual way the administrative regions of the Czech Republic. It supports subregions and has enchanced support build into the SQL for searches. Currently, SwaggerUI integration is complete but migration is not so manual setup of the DB is nececarry.

Check out the demo!

This project's demo is currently deployed Here

Compile and implement

This project handles dependancies automatically, so it is not necessary to install anything but CMake, Ninja and a compiler.

  • Create a postgres database
  • Fill out the connection string
    -DPG_CONNECTION_STRING="host=... port=... dbname=... user=... password=..."
  • Compile and run
$ mkdir build && cd build
$ cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=ninja
$ ninja
$ ./src/uni_bd2_backend-exe