Skip to content

MxPy/thesis-backend-multirepo

Repository files navigation

How to run

  1. Clone repo
  2. git submodule init
  3. git submodule update --remote --recursive Please use V2 version of docker compose if possible

5. docker compose --profile [with selected services (see compose file)] up -d 6. docker compose watch *for development only

  1. cd .\thesis-backend\ At this point, just to make sure everything is up-to-date run commands:
  • git submodule init
  • git submodule update --remote --recursive
  1. cd .\thesis-sensors-py-service\
  2. python -m venv venv
  3. venv/Scripts/activate
  4. pip install -r requirements.txt
  5. Run commands:
  • python -m grpc_tools.protoc -I ./protos --python_out=. --grpc_python_out=. sensor.proto

  • python -m grpc_tools.protoc -I ./protos --python_out=. --grpc_python_out=. user.proto

  • python -m grpc_tools.protoc -I ./protos --python_out=. --grpc_python_out=. workout.proto

  1. cd ../..
  2. docker compose --profile all up --build to run base services

Optional:

  1. Create .env file in the root folder and paste this: COMPOSE_PROFILES=all Then save, and from now on you can use a regular docker compose up --build without specifying the profile

If it still won't work message @MxPy or @iraszewska

Running only sensors-specific services

Use the docker compose command to bring up services associated with the core profile:

docker compose --profile core up

Whole traffic regarding admin panel is routed by the gateway now, but this still can be useful in terms of developing the sensors data related backend.

Architecture diagram

C4 Architecture diagram is in Documentation folder you can render it here: https://structurizr.com/dsl

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published