fastapi-user service
User service with python-fastapi
Install dependencies and run server
Dependencies are managed by poetry
Install poetry before moving forward.
Use Poetry to install required dependencies:
poetry install --no-root
If you need to use new dependencies (e.g. requests), use poetry:
poetry add requests
To start the server call the following command:
poetry run uvicorn --port 5000 --host 127.0.0.1 app.main:app --reload
It will automatically load any code updates, no need to restart.
then reach it -> http://localhost:5000/docs
You can call CTRL-C to stop the server.
Run tests
poetry run pytest