# Cloning and building example project
___
## Setup
* Clone repository: https://github.com/nauka-programowania-MA/AdvancedCppV2
* Go to exercises/exampleProject
* Compile it and run:
* mkdir build
* cd build
* cmake ..
* make -j4 (where 4 is available threads)
* ./ExampleProject
* Should print Hello World
If you don't have linux, you can use replit
* Click Create C++
* Name it and confirm with button Create Repl.
* Click three dot on the rigt top screen and click upload folder
* Now find your directory with repo and upload it
* Congratulation, you can use linux shell wit sanitizers, cmake and valgridn support :)
___
## replit
If you decided to use replit please configure this file: `replit.nix`:
```bash
{ pkgs }: {
deps = [
pkgs.clang_12
pkgs.ccls
pkgs.gdb
pkgs.gnumake
pkgs.vim
pkgs.valgrind
pkgs.cmake
];
}
```