Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

MerginMaps/cpp-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mergin Cpp Client

This repository contains a cpp client module for access to Mergin service and a command-line tool for easy access to data stored in Mergin.

Code Layout Linux Build Windows Build

Note: Check also Mergin Python Client

Command-line Tool

When the client is installed, it comes with mergin command line tool.

$ mergin --help
Usage: mergin [OPTIONS] COMMAND [ARGS]...

Options:  
  --help      Show this message and exit.
  --version   Show the version information.
  --username  Mergin username (or MERGIN_USERNAME env. variable)
  --password  Mergin password (or MERGIN_PASSWORD env. variable)
  --url       Mergin url      (defaults to public.cloudmergin.com)

Commands:
  create         Create a new project on Mergin server
  download       Download last version of mergin project
  sync           Pull&Push the changes
  remove         Remove project from server.

Development

Compilation

Windows

For CI setup, see this GitHub Action

  1. Install Visual Studio (At least c++ compiler)
  2. Install Qt5 (some recent version, 5.14.x or 5.15.x)
  3. Install Cmake
  4. Compile Geodiff
 <in VS cmd>
 git clone https://github.com/lutraconsulting/geodiff
 cd build-geodiff
 cmake ..\geodiff\geodiff
 cmake --build . --config Release
  1. Download Input
 git clone https://github.com/lutraconsulting/input
 git checkout mergin_cpp
  1. Compile Client
 <in VS cmd>
 cd build-client
 qmake ..\mergin-cpp-client\src\client.pro
 nmake release

Tests

TODO For running test do:

cd mergin
export TEST_MERGIN_URL=<url> # testing server
export TEST_API_USERNAME=<username>
export TEST_API_PASSWORD=<pwd>
export TEST_API_USERNAME2=<username2>
export TEST_API_PASSWORD2=<pwd2>
pipenv run pytest --cov-report html --cov=mergin test/

About

ARCHIVED - Mergin Maps C++ Client

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors