Skip to content

Commit 962282e

Browse files
documentation completion
1 parent a71e8bd commit 962282e

3 files changed

Lines changed: 61 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ The project was designed with a strong focus on:
7575

7676
---
7777

78+
# Execution instruction
79+
80+
Available in file: [INSTRUCTION.md](markdowns/INSTRUCTION.md)
81+
82+
---
83+
7884
# Project Architecture
7985

8086
<div align="center">

‎README.pl.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ Całość została zaprojektowana z naciskiem na:
7474

7575
---
7676

77+
# Instrukcja uruchomienia
78+
79+
Dostępna w pliku [INSTRUCTION.md](markdowns/INSTRUCTION.md)
80+
81+
---
82+
7783
# 🖼️ Architektura projektu
7884

7985
<div align="center">

‎markdowns/INSTRUCTION.md‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Complex guide to make it work
2+
3+
1. Make sure you have latest distribution of golang (at least 1.21.)
4+
2. Make sure you have local distribution of docker
5+
3. Configure .env files:
6+
- `./.env`
7+
- `./db/.env`
8+
9+
For example: copy the content of .env.example files
10+
4. go to the `db` directory:
11+
`cd db`
12+
5. Download images and run containers:
13+
`docker compose up -d`
14+
6. Wait a litlle while and log in to the pgadmin container service: `localhost:5050`:
15+
Login is your `PGADMIN_EMAIL` and password is your `PGADMIN_PASSWORD`
16+
7. Estabilish connection to the new server with proper information from your `.env`:
17+
1. Click `Add New Server`
18+
2. Enter the name you would like to call your connection e.g `kitty`
19+
3. Switch to the `Connection` tab
20+
4. `Host name/address` : Important info: if you run containers as a localhost please enter the `db`value in this field
21+
5. `Port` : enter your `POSTGRES_PORT` value e.g. `5432`
22+
6. `Maintenance database`: enter your `POSTGRES_DB` value
23+
7. `Username`: enter your `POSTGRES_USER` value
24+
8. `Password`: enter your `kittyhub` value
25+
9. Click `save` button
26+
8. Go your connection, database and schemas.
27+
9. Open new query tool for that database
28+
10. Create new table using script from [init.sql](../db/init.sql)
29+
11. Execute query
30+
12. Open new terminal in the main KittyProtocol catalog
31+
13. Run a hub via command:
32+
33+
```bash
34+
go run ./cmd/hub
35+
```
36+
37+
14. Run cli clients via command:
38+
39+
```bash
40+
go run ./cmd/client_cli
41+
```
42+
43+
15. Build gui clients .exe files via command:
44+
45+
```bash
46+
go build -x -o meowssenger.exe ./gui_src
47+
```
48+
49+
And the double click on your `mewssenger.exe` file visibile in file explorer.

0 commit comments

Comments
 (0)