Stop installing DB locally use Docker for local development for MongoDB or PostgreSQL
It is very simple but you have to use a Docker containers. Meaning that for example to use a MongoDB locally you have to run MongoDB docker container, and guess what it is way easier than running MongoDB locally!