From a51d54d5ef80316acb22bd7f3ad7f0a9f58672f8 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 22 Oct 2025 11:39:51 -0400 Subject: [PATCH 1/3] tsk-68: Removed file --- run_migrations.txt | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 run_migrations.txt diff --git a/run_migrations.txt b/run_migrations.txt deleted file mode 100644 index 00583ef..0000000 --- a/run_migrations.txt +++ /dev/null @@ -1,27 +0,0 @@ -TODO: At some point, move this somewhere that is appropriate - -# Make sure role has CREATEDB -ALTER ROLE username_that_needs_permission CREATEDB; - -# Install migrations -cargo install sqlx-cli - -# Make sure to populate DATABASE_URL with correct value. -# By default, the DATABASE_URL found in .env file will be used -export DATABASE_URL="postgres://icarus_op_test:password@localhost/icarus_auth_test" - -# init -sqlx migrate add init_migration -sqlx migrate run - -# Create -sqlx database create - -# Drop -sqlx database drop - -# setup -sqlx database setup - -# Reset -sqlx database reset -- 2.43.0 From 5bdbfe51d42fdfcfb7e1176709c29da4fe7eb5e3 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 22 Oct 2025 11:40:10 -0400 Subject: [PATCH 2/3] tsk-68: readme changes --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e36b14e..558ac5f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ A auth web API services for the Icarus project. # Getting Started +Install the `sqlx` tool to use migrations. +``` +cargo install sqlx-cli +``` +This will be used to scaffold development for local environments. + + The easiest way to get started is through docker. This assumes that docker is already installed on your system. Copy the `.env.docker.sample` as `.env`. Most of the data in the env file doesn't need to be modified. The `SECRET_KEY` variable should be changed since it will be used for token -- 2.43.0 From 0197855d86ef396bf7ce8f1294dac1adcbbd0c90 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 22 Oct 2025 11:40:36 -0400 Subject: [PATCH 3/3] tsk-68: readme changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 558ac5f..a0cdba5 100644 --- a/README.md +++ b/README.md @@ -40,4 +40,4 @@ docker system prune -a ``` To view the OpenAPI spec, run the project and access `/swagger-ui`. If running through docker, -the url would be something like `http://localhost:8000/swagger-ui`. +the url would be something like `http://localhost:8001/swagger-ui`. -- 2.43.0