SyncApp

File sync and version control.

About

In on of local small companies new person joined for the position - accountant. The program for taxes, invoices etc., doesn't support multi users. So i brought an idea to create C++ app that will sync files between PC's and when one person is working the second will can't access this program.

How it works?

It works similar to GIT, there are repos with files and every change is committed. In addition, you can lock temporarily the repo and anybody will can't change anything in it.

Syncing files

Source code of C++ daemon you can find here and PHP Backend here.

What I learned?

Consuming REST API with cpprest


Creating sqlite database in C++


Rsync protocol