To build the dependencies & the project itself, The following must be installed:
- Microsoft Visual Studio 2019 (VS2019)
- CMake
## Dependencies
> For each dependency, CMD is assumed to be in the directory of `dependencies`. So, the first command is always changing into the directory which contains the dependency.
> **NOTE:** If you want to compile Libpqxx or install PostgreSQL locally, your OS username should NOT contain non-ASCII characters (e.g. Chinese characters). A workaround is to create a new administrator account whose username consists of only ASCII characters.
### [Boost](https://www.boost.org/)
CMD:
```
cd boost
bootstrap
b2
```
### [Crypto++](https://cryptopp.com/)
1. Go to `cryptopp`.
2. Use VS2019 to open `cryptest.sln`.
3. For `Debug``x64` configuration, open `Properties` of `cryptlib` project. In `C/C++``Code Generation`, set `Runtime Library` to `Multithreading Debug DLL (/MDd)`.
4. For `Release``x64` configuration, open `Properties` of `cryptlib` project. In `C/C++``Code Generation`, set `Runtime Library` to `Multithreading DLL (/MD)`.
5.`Batch Build``Debug` AND `Release``x64` of `cryptlib`.
Use VS2019 to open `WebApp.sln`, which is a sample project. Remember to properly configure the database and `config.json` before you `Run` the project.