Skip to content

Head project for monsters game, containing configs for services

License

Notifications You must be signed in to change notification settings

Monsters-RPG-game/Head

Repository files navigation

Monsters - head

Set of configs used to properly set up services for game 'Monsters'. Project is written in SOA architecture with node.js

TLDR;

  1. How to start
  2. How to build

1. How to start:

This project includes docker-compose 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

Compose wasn't used by me for a long long time. It might not work

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

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

About

Head project for monsters game, containing configs for services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published