Add .envtemplate and update readme

This commit is contained in:
2025-08-09 16:33:11 +01:00
parent 7dc99f847c
commit 371f48b42f
2 changed files with 12 additions and 1 deletions

View File

@@ -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
```

7
backend/.envtemplate Normal file
View File

@@ -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