Collection of shell scripts and k8s scripts for monsters
  • Shell 84.1%
  • Makefile 15.9%
Find a file
2025-09-27 13:45:08 +02:00
.gitea/ISSUE_TEMPLATE Feat: Migrated github to gitea 2025-08-09 07:59:08 +02:00
configs Feat: Added authorizations system to submodules 2025-09-05 17:10:30 +02:00
k8s Feat: Added fights configs, removed ingress 2025-09-27 13:45:08 +02:00
samples Feat: #30 Added better automated scripts for setting up infrastructure 2025-07-31 20:31:57 +02:00
scripts Feat: Added authorizations system to submodules 2025-09-05 17:10:30 +02:00
services Feat: Added authorizations system to submodules 2025-09-05 17:10:30 +02:00
tests Feat: Added autoated integration tests 2025-01-15 18:07:25 +01:00
.gitignore Chore: Updated services 2025-08-30 11:11:57 +02:00
.gitmodules Feat: Added authorizations system to submodules 2025-09-05 17:10:30 +02:00
example.env Feat: #30 Added better automated scripts for setting up infrastructure 2025-07-31 20:31:57 +02:00
LICENSE Init save 2023-02-04 11:01:51 +01:00
Makefile Feat: Added authorizations system to submodules 2025-09-05 17:10:30 +02:00
README.md Feat: Added authorizations system to submodules 2025-09-05 17:10:30 +02:00

Monsters - head

Set of configs used to properly set up services for game 'Monsters'.

TLDR;

  1. How to start
  2. How to build

1. How to start:

This project includes configs and scripts to initialize services. You can use init.sh file to complete automate services configuration process. You can also use predefined makefile commands to start shorten your work

chmod +x init.sh
./init.sh

Important

Services in this project connect to RabbitMQ, MongoDB and Redis

Otherwise, you can start each service manually. Each service contains README file with information, on how to start it

This application also includes example.env, which will be used in k8s deployments. docker-compose also include parts of this env, but wasn't tested ( I used compose only once )

2. How to initialize environment

2.1 Automated way

Init development builds

make initDev
make prepareDev

Init production builds

make initProd
make prepareProd

2.2 By hand

Init submodules

git submodule init
git submodule update --remote --merge

Install dependencies for each service

npm install --prefix ./services/gateway
npm install --prefix ./services/messages
npm install --prefix ./services/users
npm install --prefix ./services/fights
npm install --prefix ./services/authorizations

Important

Keep in mind that each service requires testConfig.json, prodConfig.json and devConfig.json in config folder. You can find required variables in exampleConfig.json. You can always use init.sh file to initialize all configs