Add .envtemplate and update readme
This commit is contained in:
@@ -67,10 +67,14 @@ recipe-management-app/
|
|||||||
npm install
|
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
|
PORT=5000
|
||||||
MONGODB_URI=mongodb://localhost:27017/recipe-management
|
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
|
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
7
backend/.envtemplate
Normal file
7
backend/.envtemplate
Normal 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
|
||||||
Reference in New Issue
Block a user