From ec8da0e40bb515b958549c9409d3b9a3141c99a7 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 10 Jul 2023 18:49:04 +0100 Subject: [PATCH] Added create_user script with documentation on how to create a user --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ead1687..5b1f0af 100644 --- a/README.md +++ b/README.md @@ -68,3 +68,13 @@ npm run migration:push ``` Which will commit changes to the database. The database changes will be pushed to the **public** schema, whereas a meta record will be pushed to the **\_\_drizzle_migrations** schema. + +## Inserting users into the database + +In order to insert a user into the database, simply run + +``` +node -r esbuild-register src/app/db/create_user.ts khalim@hestia.homes Khalim +``` + +Since we're using just the built in process arguments to read command line arguments, the ordering of arguments needs to be email address and then name