If you want to build and run DocumentDB from source (instead of using Docker), follow these steps. This guide is designed for beginners and works best on Ubuntu/Debian. For other operating systems, package names may differ.
Recommended use the provided devcontainer for VSCode which contains all the dependencies pre-installed.
Or install the required dependencies:
sudo apt update
sudo apt install build-essential libbson-dev postgresql-server-dev-all pkg-config rustc cargosudo make installscripts/build_and_install_with_pgrx.sh -i -d pg_documentdb_gw_host/scripts/start_oss_server.sh -c -gmongosh --host localhost --port 10260 --tls --tlsAllowInvalidCertificates -u docdb_user -p Admin100Try basic MongoDB commands to verify everything works.
psql -p 9712 -d postgres