{"id":24881924,"url":"https://github.com/toreylittlefield/serverless-mailer","last_synced_at":"2025-03-27T07:16:04.626Z","repository":{"id":233825044,"uuid":"787347471","full_name":"toreylittlefield/serverless-mailer","owner":"toreylittlefield","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-23T16:09:56.000Z","size":348,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:14:27.209Z","etag":null,"topics":["netlify","nodemailer","serverless","turso","typescript","vitest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toreylittlefield.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-16T10:58:37.000Z","updated_at":"2024-06-23T16:09:59.000Z","dependencies_parsed_at":"2024-04-19T11:28:53.260Z","dependency_job_id":"b5e8d0ee-72e1-455b-a295-3e104ceaa199","html_url":"https://github.com/toreylittlefield/serverless-mailer","commit_stats":null,"previous_names":["toreylittlefield/serverless-mailer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toreylittlefield%2Fserverless-mailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toreylittlefield%2Fserverless-mailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toreylittlefield%2Fserverless-mailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toreylittlefield%2Fserverless-mailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toreylittlefield","download_url":"https://codeload.github.com/toreylittlefield/serverless-mailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798352,"owners_count":20673902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netlify","nodemailer","serverless","turso","typescript","vitest"],"created_at":"2025-02-01T12:14:28.957Z","updated_at":"2025-03-27T07:16:04.596Z","avatar_url":"https://github.com/toreylittlefield.png","language":"TypeScript","readme":"# Serverless Mailer\n\nA simple email sender using nodemailer and Turso database.\n\n- Nodemailer is used to send emails.\n- Turso database is used to store email templates.\n- Netlify to host the serverless functions and is AWS Lambda compatible.\n\n## Installation\n\n```bash\npnpm install # Install the dependencies\n```\n\n## Usage\n\n### Environment Variables\n\nCreate a `.env` file in the root directory and add the following environment variables or use npx/pndm dlx to create the `.env` file.\n\nSee https://www.dotenv.org/docs/quickstart for CLI commands\n\nExample:\n\n```bash\npnpm dlx dotenv-vault@latest push # push to dotenv-vault\npnpm dlx dotenv-vault@latest pull # pull from dotenv-vault\n```\n\nSee list of `pnpm run env:` commands in the `package.json` file.\n\n---\n\n## Turso Database\n\nTurso is a simple database that uses SQLite3. It has a generous free tier.\nSee https://turso.tech/ for more information.\n\nYou can use the Turso database to store email templates.\n\nOpen the `./scripts/db.ts` file to create the database and tables.\n\n```bash\npnpm run db:create # Create the database\n```\n\nModify the `dump.sql` file to change the database schema and/or populate the tables.\n\n---\n\n## Local Development\n\n```bash\npnpm run dev # Start the server\n```\n\n---\n\n## Build\n\n```bash\npnpm run build # Build the project\n```\n\nOutput will be in the `./dist` directory.\n\n---\n\n## Test\n\n```bash\npnpm run test # Run the tests\n```\n\n### Coverage\n\n```bash\npnpm run coverage # Run the tests with coverage\n```\n\n---\n\n## Deploy to Netlify from CLI (Optional)\n\n```bash\npnpm run deploy # Deploy to Netlify\n```\n\nor push to your repository and Netlify will automatically deploy the changes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoreylittlefield%2Fserverless-mailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoreylittlefield%2Fserverless-mailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoreylittlefield%2Fserverless-mailer/lists"}