Skip to content

remove hardcoded strings #1

@itai-gendler

Description

@itai-gendler

https://github.com/miryamW/LeetCode-server/blob/47281d4e4ca8f7fc574bad25aed3e5720177435a/services/question.service.go#L26C1-L27C1

please remove hardcoded strings like database endpoint.
this should be a dynamic value because it can change between production and local development.

best approach is to use environment variables and put local endpoint as default.
you should have some config component that will take care of this and will verify that all required inputs for the server properly exists.
you can also use .dotenv in addition

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions