From 88a5c6448a14aa5e3a7615aa3cfbaec98a7bb01e Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Fri, 3 May 2024 17:29:03 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20`Enabling=20Open=20User=20?= =?UTF-8?q?Registration`=20to=20backend=20docs=20(#1191)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/README.md b/backend/README.md index e6400be..27aabab 100644 --- a/backend/README.md +++ b/backend/README.md @@ -63,6 +63,16 @@ Make sure your editor is using the correct Python virtual environment. Modify or add SQLModel models for data and SQL tables in `./backend/app/models.py`, API endpoints in `./backend/app/api/`, CRUD (Create, Read, Update, Delete) utils in `./backend/app/crud.py`. +### Enabling Open User Registration + +By default the backend has user registration disabled, but there's already a route to register users. If you want to allow users to register themselves, you can set the environment variable `USERS_OPEN_REGISTRATION` to `True` in the `.env` file. + +After modifying the environment variables, restart the Docker containers to apply the changes. You can do this by running: + +```console +$ docker compose up -d +``` + ### VS Code There are already configurations in place to run the backend through the VS Code debugger, so that you can use breakpoints, pause and explore variables, etc.