/simple-auth-server

Based on Rust, actix and actix_web

Primary LanguageRust

Note: this project is deprecated. It is based on a pre-major actix version.

Simple auth server

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/

Install Postgres

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