### Start Local Development Server - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Starts the Next.js development server for the main application. ```bash pnpm dev ``` -------------------------------- ### Configure Local Wrangler Files - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Copies example Wrangler configuration files for the main project, email worker, and cleanup worker for local development setup. ```bash cp wrangler.example.json wrangler.json cp wrangler.email.example.json wrangler.email.json cp wrangler.cleanup.example.json wrangler.cleanup.json ``` -------------------------------- ### Configure Local Environment Variables - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Copies the example environment file to create a local environment configuration file (.env.local). ```bash cp .env.example .env.local ``` -------------------------------- ### Create Production Environment File for Wrangler - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Copies the example environment file to create the production environment configuration file (.env) used by Wrangler deployment. ```bash cp .env.example .env ``` -------------------------------- ### Install MoeMail Dependencies - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Installs project dependencies using the pnpm package manager. ```bash pnpm install ``` -------------------------------- ### Run and Test Cleanup Worker Locally - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Starts the cleanup worker in development mode and then runs a test command for it using pnpm. ```bash pnpm dev:cleanup pnpm test:cleanup ``` -------------------------------- ### Migrate Local D1 Database - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Runs the local database migration script using pnpm to set up the necessary tables in the Cloudflare D1 database. ```bash pnpm db:migrate-local ``` -------------------------------- ### Run Wrangler Deployment Script - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Executes the TypeScript deployment script using `pnpm dlx tsx` to deploy the application via Wrangler. ```bash pnpm dlx tsx ./scripts/deploy/index.ts ``` -------------------------------- ### Push Git Tag for GitHub Actions Deployment - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Pushes the newly created tag to the remote GitHub repository, initiating the GitHub Actions deployment workflow if configured. ```bash git push origin v1.0.0 ``` -------------------------------- ### Clone MoeMail Repository - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Clones the MoeMail project repository from GitHub to your local machine and navigates into the project directory. ```bash git clone https://github.com/beilunyang/moemail.git cd moemail ``` -------------------------------- ### Generate Mock Test Data - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Runs a script using pnpm to generate mock email and message data for testing the application. ```bash pnpm generate-test-data ``` -------------------------------- ### Create Git Tag for GitHub Actions Deployment - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Creates a new version tag (e.g., v1.0.0) in the Git repository, which can trigger the GitHub Actions deployment workflow. ```bash git tag v1.0.0 ``` -------------------------------- ### Deploy Email Worker Locally (for testing) - Bash Source: https://github.com/meesumaes/moemail/blob/master/README.md Deploys the Cloudflare Email Worker using pnpm, typically for testing purposes as local execution is not supported. ```bash pnpm deploy:email ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.