From 1a9b791f2960586e05b65edfd6507b62b479a094 Mon Sep 17 00:00:00 2001 From: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> Date: Thu, 4 Feb 2021 18:43:18 +0000 Subject: [PATCH] update(curriculum): explicitise use-the-env-file (#40898) * update(curriculum): explicitise use-the-env-file Co-authored-by: Nicholas Carrigan (he/him) --- .../basic-node-and-express/use-the-.env-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/05-apis-and-microservices/basic-node-and-express/use-the-.env-file.md b/curriculum/challenges/english/05-apis-and-microservices/basic-node-and-express/use-the-.env-file.md index ad83674c7a..8bd5f45090 100644 --- a/curriculum/challenges/english/05-apis-and-microservices/basic-node-and-express/use-the-.env-file.md +++ b/curriculum/challenges/english/05-apis-and-microservices/basic-node-and-express/use-the-.env-file.md @@ -16,7 +16,7 @@ The environment variables are accessible from the app as `process.env.VAR_NAME`. Let's add an environment variable as a configuration option. -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"}`. +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"}`. # --hints--