Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.16 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.16 KB

microcentral

A Central Hub To Manage And Monitor your microservices against best in class scorecards


Installation and Running on local machine

  • Get Docker In your machine you can follow this link to get it in your operating system install docker

  • Install Python 3.10+

    curl -sSL https://install.python-poetry.org | python3 -
    
    # Install the dependencies
    sudo apt install libpq-dev gcc
    poetry install
    
    # run database inside docker 
    docker-compose up -d database
    
    # then run the migrations
    poetry run alembic upgrade head
    
    # seed some data (services, teams, scorecards)
    poetry run python -m app.initial_data
    
    # then run the app fastapi
    poetry run fastapi dev
    

Running on a Server using Docker Compose

  1. run the following command
sudo docker-compose up

# For Migrations we went with alembic we after you update the models you need to run theses commands
sudo docker-compose run --rm app poetry run alembic revision --autogenerate -m "$message"
sudo docker-compose run --rm app poetry run alembic upgrade head
# and you are good to go