Project solution ultimate backend

This is the backend part for the Project solution ultimate

C++

The c++ part is a rest api coded with cpprestsdk and sqlite3

Compilation

Cmake 3.28 and ninja are required

Required: install cpprestsdk and sqlite3

  1. cpprestsdk:

    If you have apt, run:

       sudo apt update
       sudo apt install libcpprest-dev
  2. sqlite3:

    Same for sqlite3:

    sudo apt update
    sudo apt install sqlite3 libsqlite3-dev

To compile, simply execute this command:

cmake --build ./cmake-build-debug --target project_solution_finder_ultimate_backend -j 6

Running

To run the program, run the following command:

./cmake-build-debug/project_solution_finder_ultimate_backend ./plateforme.db [--export]

The --export option is used to export all the solutions in a solutions.json file

Python

Python 3.12

Create a python virtual environment using for example virtualenv

To check if virtualenv is already installed :

pip list | grep virtualenv

If virtualenv does not appear, run :

pip install virtualenv

Move to the directory containing project-solution-finder-ultimate-backend :

cd path/to/project-solution-finder-ultimate-backend`

To create a virtual environment, execute the following command :

python<version> -m venv .venv

Activate the virtual environment :

source .venv/bin/activate

Download all required librairies :

pip install -r requirements.txt

Citing & Authors of model

reimers-2019-sentence-bert

reimers-2020-multilingual-sentence-bert