Skip to content

Conversation

Reethikaa05
Copy link

Overview

This PR improves the security and maintainability of the project by migrating all hardcoded Firebase and TMDB API keys into an .env file.

Changes Made

  • Created .env file to store Firebase and TMDB API keys securely.
  • Updated firebase.prod.js to read config from environment variables.
  • Updated requests.js to fetch TMDB API key from .env.
  • Added .env entry in .gitignore to prevent committing secrets.

Benefits

  • Prevents accidental exposure of sensitive keys in source code.
  • Makes it easier for contributors to use their own API keys locally.
  • Aligns project with industry best practices for handling secrets.

Steps to Test

  1. Create a .env file in the project root with your Firebase and TMDB keys.
  2. Run npm start to ensure app runs without errors.
  3. Verify that movie data loads correctly using TMDB API.
  4. Verify Firebase authentication works as expected.

This change improves project security and prepares the codebase for safe collaboration.

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