This Project is an experiment to build a social network api writen in rust.
- User registration, login [Done]
- User Posting, Deleting, Editing [In Progress]
- User Follows [Pending]
- User Feed [Pending]
- User Comments [Pending]
in order to run this api, it needs to have a mariadb running and the env vars been setup, the is an example in .env_local, just need to be renamed to .env and fill with the correct info of the machine.
Whisper MSRV is 1.66.1.
- run mariadb in a docker
docker network create whisper-network && docker run --detach --name whisperdb --network whisper-network --env MARIADB_USER=whisper --env MARIADB_PASSWORD=whisper --env MARIADB_ROOT_PASSWORD=whisper mariadb:latest
- access and connect
docker run -it --network whisper-network --rm mariadb mariadb -hwhisperdb -uwhisper -p
- get ip of the container
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' whisperdb
to make a connection from ouside of the container - run the created image
docker start whisperdb