Skip to content

Installing PostgreSQL: instruct learners to use Figaro gem hide away database credentials and API keys #30950

@ZackHoang

Description

@ZackHoang

Checks

Describe your suggestion

I was taking a look at the Rails side of the curriculum and I noticed how using environment variables in Rails are not explained as succinctly in the Node path (using the --env-file flag follow by the .env file path after invoking node command).

Figaro gem's installation instruction is pretty straight forward. I think it would be better to introduce Figaro early on and instruct learners to hide away their DB credentials rather than hard-coding them, which is what this lesson is suggesting. It could also be nice to mention about hiding away API keys and leave API explanation to the later lessons. We could also just mention setting up Figaro once and delete any other mentions in future lessons to avoid repetition.

That's my point of view coming from a Node fellow, would love to hear what maintainers have to say about this 😃

Path

Ruby / Rails

Lesson Url

https://www.theodinproject.com/lessons/ruby-on-rails-installing-postgresql

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions