Skip to content

Add .env file support for local development #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Dharshana-Belraj
Copy link

Add .env file support for local development

Changes

  • Added python-dotenv dependency to requirements.txt
  • Created .env.example template with all configuration variables
  • Updated README.md with local development section
  • Added dotenv import and load_dotenv() call to main script

Benefits

  • Improves developer experience for local development and testing
  • Maintains full backward compatibility with existing environment variable setup
  • Follows Python best practices for environment variable management
  • Makes it easier for new contributors to get started

Testing

  • Tested with .env file - works correctly
  • Tested without .env file - maintains backward compatibility
  • All existing functionality preserved

- Add python-dotenv dependency for loading environment variables from .env files
- Create .env.example template with all required and optional variables
- Update README.md with local development section and .env usage instructions
- Maintains full backward compatibility with existing environment variable setup
- Improves developer experience for local development and testing
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.

1 participant