Skip to content

feat: refactor configuration to use environment variables and add .env support#30

Open
A69SHUBHAM wants to merge 2 commits into
chaoss:mainfrom
A69SHUBHAM:feature/env-config
Open

feat: refactor configuration to use environment variables and add .env support#30
A69SHUBHAM wants to merge 2 commits into
chaoss:mainfrom
A69SHUBHAM:feature/env-config

Conversation

@A69SHUBHAM
Copy link
Copy Markdown

Summary

This PR refactors the project configuration to use environment variables instead of hardcoded values, improving security and maintainability.

Changes

  • Moved configuration values (API URLs, settings) to .env
  • Added .env.example file for reference
  • Updated backend to read environment variables using python-dotenv
  • Removed hardcoded configuration from source code
  • Updated README with setup instructions

Why this is needed

Hardcoded configuration makes the project less secure and harder to manage across environments. Using environment variables follows best practices and allows flexible configuration for development and production.

Testing

  • Verified application runs correctly with .env file
  • Tested missing variables → proper fallback or error handling
  • Confirmed no hardcoded values remain in the codebase

Impact

  • Improves security by avoiding hardcoded sensitive values
  • Enhances maintainability and scalability
  • Makes setup easier for contributors

Closes #29

Signed-off-by: A69SHUBHAM <spacekrai0@gmail.com>
Signed-off-by: A69SHUBHAM <spacekrai0@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configuration is hardcoded instead of using environment variables

1 participant