Skip to content

GwinBest/onlineChat

Repository files navigation

OnlineChat

How to clone

This repo uses gitmodules, so clone it recursive:

git clone --recursive https://github.com/GwinBest/OnlineChat.git

Build Tools

Database

If you need to run the server, then download the MySql

Getting Started

First, clone a repository

git clone https://github.com/GwinBest/OnlineChat.git

Then, make a build folder

cd OnlineChat
mkdir build
cd build

Run cmake

cmake ..

To build all apps run

cmake --build .

Or, if you want to specify

cmake --build . --target (serverApp | clientApp)

MySQL setup

First, set up the server, after that add your server credentials to environment variables

setx CHAT_DB_HOST "your_db_ip:your_db_port"
setx CHAT_DB_USER "your_db_user"
setx CHAT_DB_PASSWORD "your_db_password"
setx CHAT_DB_SCHEMA "your_db_schema"

After that, run the following code to create all necessary tables

Releases

No releases published

Packages

No packages published