Either Postgres or MongoDB need to be available.
To install Postgres on macOS run:
$ brew install postgresqlTo install MongoDB on macOS run:
$ brew tap mongodb/brew
$ brew install mongodb-community@4.4Add mongod to your path and run:
$ mongod --config /usr/local/etc/mongod.confCreate a virtual environment:
$ python3 -m venv venvInstall package dependencies into the virtual environment:
$ venv/bin/pip install -r requirements.txt
$ venv/bin/pip install -r requirements-dev.txt
$ venv/bin/pip install -e .Alerta can be run in "development mode" from the command-line:
$ alertad runTest that Alerta API is working by curl-ing the API endpoint:
$ curl http://localhost:8080/