# WellNuo Scripts This directory contains utility scripts for database operations and testing. ## Environment Variables These scripts require environment variables to be set. Create a `.env` file in the `backend/` directory with the following variables: ```bash # Database Configuration DB_HOST=your-database-host DB_PORT=5432 DB_NAME=your-database-name DB_USER=your-database-user DB_PASSWORD=your-database-password ``` ## Available Scripts ### fetch-otp.js Fetches the latest OTP code for a given email address from the database. **Usage:** ```bash node scripts/fetch-otp.js ``` **Example:** ```bash node scripts/fetch-otp.js test@example.com ``` ## Security ⚠️ **IMPORTANT**: Never commit files containing actual credentials to the repository. Always use environment variables for sensitive information. - Database credentials should be stored in `backend/.env` (this file is git-ignored) - See `backend/.env.example` for the required format