Note: this project is deprecated. It is based on a pre-major actix version.
Following the tutorial Auth Web Microservice with Rust using actix-web https://gill.net.in/posts/auth-microservice-rust-actix-web-diesel-complete-tutorial-part-2/
brew install postgres
rm -r /usr/local/var/postgres
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l logfile start
createdb postres_test
start
pg_ctl -D /usr/local/var/postgres start
To stop manually:
pg_ctl -D /usr/local/var/postgres stop
To start PostgreSQL server now and relaunch at login:
brew services start postgresql
And stop PostgreSQL:
brew services stop postgresql