Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

Add section on .env files (either MongoDB or in Node module) #35

@nbogie

Description

@nbogie

Keep the assigned HW (youtube video), but also do 15 minutes in-class, after that to ensure everyone has it.

Ideally this would be added in Node module but we currently have nothing in the node module exercises that needs protecting. Add it when it is NEEDED.

The HW was:

Watch the Daniel Shiffman video https://www.youtube.com/watch?v=17UVejOw3zA
"3.4 Hiding API Keys with Environment Variables (dotenv) and Pushing Code to GitHub"

Although it talks about API keys, it is also the approach we would recommend you take for your mongodb connection URI.

Pay careful attention to the bit about the .gitignore file, too!

Also link to docs on:
repl.it: https://docs.repl.it/repls/secret-keys
glitch: TODO

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions