Skip to content
/ app Public

MongoTech - a cloud-based SaaS-service designed to manage your MongoDB in such clouds as AWS, Google and Azure

License

Notifications You must be signed in to change notification settings

MongoTech/app

Repository files navigation

MongoTech

Flake8 Black Bandit MyPy PyTest

Before you start you neeed

Later you will need:

Add ssh-keys for you profile

You need add keys here instruction how to generate

Git clone

git clone git@gitlab.com:mongodb.tech/app.git

Install venv

cd app
python3.9 -m venv venv
source ./venv/bin/activate

Verfify python version

python --version
Python 3.9.12

Run docker-compose

docker-compose up -d

Main thing is monga and provisioning

Install poetry

pip install poetry

Install poetry dependencies

cd backend\app\app
poetry install

Run application

python main.py

For api testing you need postman

Postman

Configure first request Get Token

get token request add tests to save token

In enviroment you need to define HOST = http://localhost:8001/api/v1 and pickup username and password from .env file

Before commit you need Run

./test.sh This run all linters and pytest

Deploy all stack in docker containers

For Intel cpu docker-compose -f docker-compose.dev.yml --env-file .env up --build -d

For Arm64 cpu docker-compose -f docker-compose.dev64.yml --env-file .env up --build -d

After up and running all containers, exec in backend container and run python3.9 app/initial_data.py