A Flutter project for tracking calories and nutrition.
This project uses environment variables for sensitive configuration like Firebase API keys.
- Create your .env file:
- Copy the
.env.example
file and rename it to.env
- Ask the project admin for the actual values to use in your
.env
file - Never commit your
.env
file to git
- Copy the
cd .env.example .env
# Then edit .env with the actual values
- Install dependencies:
flutter pub get
- Run the app:
flutter run
- API Keys: All API keys are stored in the
.env
file, which is excluded from git - Firebase Security: Make sure to configure Firebase Security Rules for your collections
- Authentication: Use Firebase Authentication for user management
- Always use the environment variables for configuration, never hardcode sensitive values
- Configure proper Firebase Security Rules to control access to your data
- Use Firebase Auth to authenticate users before allowing access to data
- Run security audits periodically using Firebase Security Rules Playground