{"id":16266005,"url":"https://github.com/zernonia/secret-diary","last_synced_at":"2025-04-08T14:38:59.508Z","repository":{"id":112541262,"uuid":"392208958","full_name":"zernonia/secret-diary","owner":"zernonia","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-19T15:06:58.000Z","size":1394,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T10:56:34.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"secret-diary.vercel.app","language":"Vue","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/zernonia.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":"2021-08-03T06:04:46.000Z","updated_at":"2024-08-04T02:17:25.000Z","dependencies_parsed_at":"2023-05-15T22:30:33.401Z","dependency_job_id":null,"html_url":"https://github.com/zernonia/secret-diary","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"91a6139d2bd8eb2fad7df2632bf31ac779993473"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsecret-diary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsecret-diary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsecret-diary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsecret-diary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zernonia","download_url":"https://codeload.github.com/zernonia/secret-diary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247863079,"owners_count":21008811,"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":[],"created_at":"2024-10-10T17:21:27.541Z","updated_at":"2025-04-08T14:38:59.481Z","avatar_url":"https://github.com/zernonia.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/zernonia/secret-diary\"\u003e\n    \u003cimg src=\"src/assets/logo.svg\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eSecret Diary\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Secret Diary Apps (submission for \u003cstrong\u003e\u003ca href=\"https://supabase.io/\"\u003eSupabase Hackathon\u003c/a\u003e\u003c/strong\u003e)\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://secret-diary.vercel.app/\"\u003eView Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/zernonia/secret-diary/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/zernonia/secret-diary/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n![Supabase Schema](src/assets/preview.png)\n\n## 🚀 Features\n\n- 🔨 No installations required\n- 🔒 Data can be hosted on your own [Supabase](https://supabase.io/) Instance\n- 🚪 Phone login, required OTP for initial Sign Up\n- 👀 No Sensitive info required\n- 🤚 Move your loving diary to Web\n\n## 📇 Submission Info (for Hackathon)\n\n![Supabase Hackathon Meme](src/assets/meme.gif)\n\n### 👨‍💻 Team\n\n- Zernonia (@zernonia)\n\n### Project Idea\n\nI want to quickly built an app that utilized Supabase RLS and Storage policies, and suddenly thought of this **Secret Diary** idea on my bed, becauase.... what else requires more security than your very dear Diary 📘!\n\n### ⚡ How I utilize Supabase\n\n1. Supabase **Phone Auth [(new release)](https://supabase.io/blog/2021/07/28/supabase-auth-passwordless-sms-login)**\n\n   - Trying to re-create Real Diary experience where Privacy \u0026 Access is super important. Therefore, using OTP should be much safer for Web Applications.\n   - **Note:** Due to Twilio Trial Version, I have to use verified Caller ID to pre-register 1 account for the judges _(Login: +60172542822 , Password: 123456)_. Also, to prevent judges not able to login when I'm asleep, I had to use Phone + Password login instead.\n   - From this project, I also discovered a [Bug related to Phone Auth](https://github.com/supabase/supabase-js/issues/222) too\n\n2. Supabase **Database**\n\n   - Trying to re-create the Real Diary experience where whatever the users has written down is automatically saved inside the diary, in this saved in Supabase Database.\n   - To make sure data is secured, I've enabled RLS and created simple policies where `auth.uid() = user_id` for all `SELECT`, `UPDATE`, `INSERT` and `DELETE`.\n   - Simple Schema for the project, generated from [Supabase Schema](https://supabase-schema.vercel.app/). ![Secret Diary Schema](src/assets/schema.png)\n\n3. Supabase **Storage**\n\n   - Similarly, Real Diary has images pasted in it. Thus, Supabase Storage comes in handy where users can directly upload to the folder specific to them inside a bucket, thus allow to safe guard those assets.\n   - To ensure personal images does not expose to other user, I've used the **Storage Policies** to quickly `Give users access to own folder`.\n\n### 🔨 Built With\n\n- [Vue 3](https://v3.vuejs.org/)\n- [Vite](https://vitejs.dev/)\n- [WindiCSS](https://windicss.org/)\n- [Supabase](https://supabase.io)\n\n## 🌎 Local Development\n\n### Prerequisites\n\nYarn\n\n- ```sh\n  npm install --global yarn\n  ```\n\n### Development\n\n1. Clone the repo\n   ```sh\n   git clone https://github.com/zernonia/secret-diary.git\n   ```\n2. Install NPM packages\n   ```sh\n   yarn install\n   ```\n3. Run Development instance\n   ```sh\n   yarn dev\n   ```\n\n## 📜 License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## 📧 Contact\n\nZernonia - [@zernonia](https://twitter.com/zernonia) - zernonia@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzernonia%2Fsecret-diary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzernonia%2Fsecret-diary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzernonia%2Fsecret-diary/lists"}