{"id":17269675,"url":"https://github.com/theabbie/mailblog","last_synced_at":"2025-07-30T07:31:31.878Z","repository":{"id":45538219,"uuid":"432918147","full_name":"theabbie/mailblog","owner":"theabbie","description":"Inbox powered blog","archived":false,"fork":false,"pushed_at":"2021-12-09T17:27:33.000Z","size":174,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T08:17:08.085Z","etag":null,"topics":["blog","cms","email","inbox"],"latest_commit_sha":null,"homepage":"https://mailblog.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theabbie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"theabbie","open_collective":"theabbie","ko_fi":"theabbie","tidelift":"npm/theabbie","liberapay":"theabbie","issuehunt":"theabbie","otechie":"theabbie","custom":["https://theabbie.github.io","https://paypal.me/theabbie","https://donorbox.org/theabbie"]}},"created_at":"2021-11-29T05:37:22.000Z","updated_at":"2023-03-04T04:35:15.000Z","dependencies_parsed_at":"2022-09-05T14:31:58.213Z","dependency_job_id":null,"html_url":"https://github.com/theabbie/mailblog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fmailblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fmailblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fmailblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fmailblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theabbie","download_url":"https://codeload.github.com/theabbie/mailblog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228106596,"owners_count":17870437,"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":["blog","cms","email","inbox"],"created_at":"2024-10-15T08:17:08.701Z","updated_at":"2024-12-04T12:09:39.697Z","avatar_url":"https://github.com/theabbie.png","language":"JavaScript","funding_links":["https://patreon.com/theabbie","https://opencollective.com/theabbie","https://ko-fi.com/theabbie","https://tidelift.com/funding/github/npm/theabbie","https://liberapay.com/theabbie","https://issuehunt.io/r/theabbie","https://otechie.com/theabbie","https://theabbie.github.io","https://paypal.me/theabbie","https://donorbox.org/theabbie"],"categories":[],"sub_categories":[],"readme":"# MailBlog - Inbox powered blog\n\n![mailblog](https://user-images.githubusercontent.com/17960677/145203419-09243272-0e8f-4974-8843-c21361133a00.png)\n\n\u003e MailBlog is a blog that is managed via your Email Inbox and allows you to create and manage your own blog posts by sending an email.\n\n## Email Configuration\n\nFor GMail, [Allow Less Secure Apps](https://myaccount.google.com/lesssecureapps), If 2FA is turned on, use [App password](https://support.google.com/accounts/answer/185833)\n\nFollow Similar steps for other E-Mail Providers.\n## Environment Variables\n\nput these values in `.env.local` file (in root directory of project) or set these values for the hosting provider,\n\n```env\nEMAIL=\u003cEMAIL USED FOR BLOG\u003e\nPASSWORD=\u003cEMAIL PASSWORD\u003e\nDB=postgres://username:password@HOSTNAME/DB_NAME\nIMAP_HOST=imap.gmail.com\nIMAP_PORT=993\n```\n\n## Blog Metadata\n\nupdate [components/config.js](components/config.js) file to set metadata for your blog\n\n## Installation\n\nYou can host this blog either as a static website, or a dynamic one, but first, initialize the database,\n\nUse Commands from [DB.sql](DB.sql) to create a Database for your blog.\n\n### Static Hosting\n\n```sh\nnpm run dev\n```\n\nnow go to `localhost:3000/api/refresh` to fetch emails and update your database, Now you can build,\n\n```sh\nnpm run build\nnpm run export\n```\n\nNow deploy the `out` directory to your hosting provider.\n\nThe disadvantage is that it only updates blogs while building, thus, you need to repeat this process everytime you want to refresh.\n\n### Dynamic hosting\n\nYou can host it as a dynamic website, for example, on [Vercel](https://vercel.com), to do so, simply run,\n\n```sh\nvercel --prod\n```\n\nOr if you want to host it on a VPS,\n\n```sh\nnpm run build\nnpm run start\n```\n\n`revalidate` is set to 30 minutes (1800 seconds), you can change that in [components/config.js](components/config.js), it's the duration after which list updates.\n\nYou can also trigger fetching emails by visiting `localhost:3000/api/refresh`, which will populate the database with new unread emails.\n\n## Contributing\n\nThank you for your interest in contributing, If you feel like there's something missing or any new feature can be added, just create a PR and I will see the rest.\n\n## Help\n\nYou can contact me on social media, Everything about me can be found [here](https://theabbie.github.io)\n\n## Credits\n\n* [chakra-templates.dev](https://chakra-templates.dev/) For Blog Templates\n\n## Contact\n\nContact me anywhere, just visit [my portfolio](https://theabbie.github.io)\n\n## License\n\nThis project is licensed under MIT License, See [LICENSE](/LICENSE) for more information\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheabbie%2Fmailblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheabbie%2Fmailblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheabbie%2Fmailblog/lists"}