You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
694 B
59 lines
694 B
# Practice Tracker Setup
|
|
|
|
## Crow
|
|
|
|
### Debian
|
|
|
|
#### Install
|
|
|
|
```
|
|
sudo apt install build-essential
|
|
sudo apt install libasio-dev
|
|
wget https://github.com/CrowCpp/Crow/releases/download/v1.0%2B5/crow-v1.0+5.deb
|
|
sudo dpkg -i crow-v1.0+5.deb
|
|
```
|
|
|
|
#### Compile
|
|
|
|
```
|
|
g++ test.cpp -lpthread
|
|
```
|
|
|
|
### OS X
|
|
|
|
#### Install
|
|
|
|
```
|
|
brew install asio
|
|
brew install boost
|
|
```
|
|
|
|
#### Compile
|
|
|
|
```
|
|
g++ -std=c++11 -Wall -Wextra -Werror server.cpp -lpthread
|
|
```
|
|
|
|
## MySQL
|
|
|
|
### Debian
|
|
|
|
#### Install
|
|
|
|
```
|
|
sudo apt install libmysqlcppconn-dev
|
|
```
|
|
|
|
#### Compile
|
|
|
|
```
|
|
g++ -I/usr/include/cppconn mysql.cpp -lmysqlcppconn
|
|
```
|
|
|
|
## Compile App
|
|
|
|
### Debian
|
|
|
|
```
|
|
g++ -I/usr/include/cppconn server.cpp -lpthread -lmysqlcppconn
|
|
``` |