A web application for managing employee time off requests and tracking leave balances.
- Clone the repository
- Install dependencies:
npm install-
Set up Firebase:
- Create a new project in Firebase Console
- Enable Authentication and Firestore
- Copy
.env.exampleto.env.localfor local development - Fill in your Firebase project credentials in
.env.local
-
For Netlify deployment:
- Go to your Netlify site settings
- Navigate to "Build & deploy" → "Environment variables"
- Add the following environment variables with your Firebase credentials:
- REACT_APP_FIREBASE_API_KEY
- REACT_APP_FIREBASE_AUTH_DOMAIN
- REACT_APP_FIREBASE_PROJECT_ID
- REACT_APP_FIREBASE_STORAGE_BUCKET
- REACT_APP_FIREBASE_MESSAGING_SENDER_ID
- REACT_APP_FIREBASE_APP_ID
-
Start the development server:
npm start- Build for production:
npm run build- User authentication
- Time off request management
- Leave balance tracking
- Manager approval workflow
- Dark/light theme support
- Responsive design
The Firebase configuration uses environment variables to keep sensitive information secure:
- Never commit your
.env.localfile - Set environment variables in your deployment platform
- Use appropriate access controls in Firebase Console