# Basic Node and Express - ENV file

**URL:** <https://forum.freecodecamp.org/t/basic-node-and-express-env-file/415602>\
**Category:** General\
**Created:** [August 16, 2020, 2:37pm UTC](https://forum.freecodecamp.org/t/basic-node-and-express-env-file/415602 "2020-08-16T14:37:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marko](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marko/32/134181_2.png) [@Marko](https://forum.freecodecamp.org/u/Marko)\
**Post date:** [August 16, 2020, 2:37pm UTC](https://forum.freecodecamp.org/t/basic-node-and-express-env-file/415602/1 "2020-08-16T14:37:47Z")

</div>

Hi,

I’m currently working on the APIs and Microservices certification - Basic Node and Express, to be more specific.  
I’m using the Glitch platform to complete this project.  
At the 6th challenge, in order to complete it, we need to modify the .env file. The problem is that I cannot find it, as you can see in the following picture.  
 ![Capture](https://global.discourse-cdn.com/freecodecamp/original/3X/3/b/3bb11e97b0d70edd67e2f26adbbbef601a3d447d.jpeg)

The file exists (I console logged process.env and it returned all the key-values), but it is hidden.

Can you please point me to the right direction so I can successfully finish this challenge?

Thank you,  
Marko

---

<div class="post-metadata">

**Author:** ![Naomi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naomi/32/422181_2.png) [@Naomi](https://forum.freecodecamp.org/u/Naomi)\
**Post date:** [August 16, 2020, 3:50pm UTC](https://forum.freecodecamp.org/t/basic-node-and-express-env-file/415602/2 "2020-08-16T15:50:56Z")

</div>

Hello and welcome to the FCC community~!

Console logging `process.env` will show you specific environment variables that are automatically generated (`PORT` and `PUBLIC_URL` are a couple that come to mind). However, you will often need to create _custom_ environment variables as well (such as API keys). To do this, you store them in a file called `.env`.

The reason you do not see a `.env` file when you clone the project is that `.env` files should generally never be uploaded to GitHub. A `.env` file is intended to hold secret environment variables that you would not want available publicly, and uploading the file to GitHub can allow others to see those values.

For this challenge, you will want to use the `New File` option to manually create a `.env` file and add the necessary key-value pair. Glitch, I believe, offers a GUI for managing environment variables (which you will see when you create the file) - alternatively, you can choose to view it as a text file and add the values manually with a `KEY="Value"` syntax. 🙂

---

<div class="post-metadata">

**Author:** ![Marko](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marko/32/134181_2.png) [@Marko](https://forum.freecodecamp.org/u/Marko)\
**Post date:** [August 16, 2020, 11:50pm UTC](https://forum.freecodecamp.org/t/basic-node-and-express-env-file/415602/3 "2020-08-16T23:50:29Z")

</div>

Hello,

Glad to be here!  
I’ve tried to create a new .env file but I couldn’t figure out how to link my project to this new file.  
Eventually, I solved the problem by adding the following line in “myApp.js”:

```auto
process.env.MESSAGE_STYLE = "uppercase";

```

This adds a new variable to the already existing .env file without me having to actually open it.  
Also, I found out later that by going to Tools \> Logs \> Debugger, the .env file finally shows up (offering, as you mentioned before, a GUI for managing the variables).

Regards,  
Marco

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:43pm UTC](https://forum.freecodecamp.org/t/basic-node-and-express-env-file/415602/4 "2021-06-01T18:43:26Z")

</div>

Closed on June 1, 2021, 6:43pm UTC


