|
| 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