From 371f48b42fa8167f46dcc071042e5d20d05184b6 Mon Sep 17 00:00:00 2001 From: Foohoo Date: Sat, 9 Aug 2025 16:33:11 +0100 Subject: [PATCH] Add .envtemplate and update readme --- README.md | 6 +++++- backend/.envtemplate | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 backend/.envtemplate diff --git a/README.md b/README.md index ce721e4..0f90b08 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,14 @@ recipe-management-app/ npm install ``` -3. Create a `.env` file with your configuration: +3. Create a `.env` file with your configuration using a copy of the `.envtemplate` file (for example): ``` PORT=5000 MONGODB_URI=mongodb://localhost:27017/recipe-management + MONGODB_USERNAME=admin + MONGODB_PASSWORD=password123 + MONGODB_PORT=27017 + MONGODB_DATABASE=recipe-management JWT_SECRET=your-super-secret-jwt-key-change-this-in-production ``` diff --git a/backend/.envtemplate b/backend/.envtemplate new file mode 100644 index 0000000..ecfe0b3 --- /dev/null +++ b/backend/.envtemplate @@ -0,0 +1,7 @@ +PORT=5000 #port for the app +MONGODB_URI= #URI for the mongodb connection (mongodb://localhost:27017/recipe-management) +MONGODB_USERNAME=admin #username for the mongodb connection +MONGODB_PASSWORD= #password for the mongodb connection +MONGODB_PORT=27017 #port for the mongodb connection +MONGODB_DATABASE=recipe-management #database for the mongodb connection +JWT_SECRET=your-super-secret-jwt-key-change-this-in-production #jwt secret for the app