From 441c0aabaca255f14674cac85a94798e335d8418 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Wed, 19 Feb 2025 13:08:35 -0600 Subject: [PATCH 1/4] fix(.gitignore): Ignore .env.development --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1af2f6e..184e8d8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules .idea -.env \ No newline at end of file +.env +.env.development \ No newline at end of file From 73b4fe20d41b4e5983dbd5b00fb869b3e6513508 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Wed, 19 Feb 2025 13:09:02 -0600 Subject: [PATCH 2/4] fix(.env): Fix example to match documentation --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 86ac439..957d15b 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -DATABASE_URL="postgresql://jetkvm:jetkvm@localhost:5432/jetkvm?schema=public" +DATABASE_URL="postgresql://jetkvm:mysecretpassword@localhost:5432/jetkvm?schema=public" GOOGLE_CLIENT_ID=XXX # Google OIDC Client ID GOOGLE_CLIENT_SECRET=XXX # Google OIDC Client Secret From 281b0ab5353c7133e40554734ae0109b3fbfc2fa Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Wed, 19 Feb 2025 13:10:29 -0600 Subject: [PATCH 3/4] docs(README): Fixed docker command to expose port --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aca5f03..184fda4 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ The best place to search for answers is our [Documentation](https://jetkvm.com/d If you've found an issue and want to report it, please check our [Issues](https://github.com/jetkvm/cloud-api/issues) page. Make sure the description contains information about the firmware version you're using, your platform, and a clear explanation of the steps to reproduce the issue. - ## Development This project is built with Node.JS, Prisma and Express. @@ -37,6 +36,7 @@ docker run --name jetkvm-cloud-db \ -e POSTGRES_USER=jetkvm \ -e POSTGRES_PASSWORD=mysecretpassword \ -e POSTGRES_DB=jetkvm \ + -p 5432:5432 \ -d postgres # Copy the .env.example file to .env and populate it with the correct values From 1b6792d0e8f06f0e870ab8cb064df8cc1a9b61eb Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Wed, 19 Feb 2025 13:11:34 -0600 Subject: [PATCH 4/4] docs(README): Fixed .env.development since that's what npm run dev needs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 184fda4..e0dfedf 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ docker run --name jetkvm-cloud-db \ -p 5432:5432 \ -d postgres -# Copy the .env.example file to .env and populate it with the correct values -cp .env.example .env +# Copy the .env.example file to a new file .env.development and populate it with the correct values +cp .env.example .env.development # Install dependencies npm install