Skip to content

Commit 1a9b791

Browse files
ShaunSHamiltonNicholas Carrigan (he/him)
and
Nicholas Carrigan (he/him)
authored
update(curriculum): explicitise use-the-env-file (freeCodeCamp#40898)
* update(curriculum): explicitise use-the-env-file Co-authored-by: Nicholas Carrigan (he/him) <[email protected]>
1 parent 506763c commit 1a9b791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/05-apis-and-microservices/basic-node-and-express/use-the-.env-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The environment variables are accessible from the app as `process.env.VAR_NAME`.
1616

1717
Let's add an environment variable as a configuration option.
1818

19-
Store the variable `MESSAGE_STYLE=uppercase` in the `.env` file. Then tell the GET `/json` route handler that you created in the last challenge to transform the response object’s message to uppercase if `process.env.MESSAGE_STYLE` equals `uppercase`. The response object should become `{"message": "HELLO JSON"}`.
19+
Create a `.env` file in the root of your project directory, and store the variable `MESSAGE_STYLE=uppercase` in it. Then, in the GET `/json` route handler that you created in the last challenge, transform the response object’s message to uppercase if `process.env.MESSAGE_STYLE` equals `uppercase`. The response object should become `{"message": "HELLO JSON"}`.
2020

2121
# --hints--
2222

0 commit comments

Comments
 (0)