This service provides access to the user database, for different user actions and validation of passwords, run the app and go to /docs to see the endpoints
Make a .env file in the root directory and create a variable write the following:
DB_CONN="mysql+mysqlconnector://<YOUR_SQLALCHEMY_STRING>"the mysql prefix is only if youre using a mysql server, else look up different sqlalchemy supported sql databases
Creating docker container and running the app:
docker build -t userservice .
docker run -p 8443:8443 userservicerun this in powershell:
python -m venv .venv
.venv/Scripts/Activate.ps1
python -m pip install -r requirements.txt
python -m pip install -e .on macOS/Linux you might need to do source .venv\Scripts\activate and .venv/Scripts/activate.bat in windows CMD
uvicorn app.server:app --reloadpytest tests