{"id":22432190,"url":"https://github.com/normalhuman01/realtime-chat","last_synced_at":"2025-03-27T07:41:41.113Z","repository":{"id":212887671,"uuid":"732537806","full_name":"normalhuman01/realtime-chat","owner":"normalhuman01","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-17T02:25:45.000Z","size":292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:45:29.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/normalhuman01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-17T02:15:56.000Z","updated_at":"2023-12-17T02:23:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d6723ab-63ed-4f49-a849-90d290b47a94","html_url":"https://github.com/normalhuman01/realtime-chat","commit_stats":null,"previous_names":["normalhuman01/realtime-chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Frealtime-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Frealtime-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Frealtime-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Frealtime-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/normalhuman01","download_url":"https://codeload.github.com/normalhuman01/realtime-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806000,"owners_count":20675291,"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-12-05T22:10:54.049Z","updated_at":"2025-03-27T07:41:41.095Z","avatar_url":"https://github.com/normalhuman01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full-stack real-time chat\n\n- **Data:** PostgeSQL managed by [Supabase](https://supabase.io/) [@supabase_io](https://twitter.com/supabase_io) (awsome real-time API).\n- **Front-end**: React + Vite\n- **UI library**: [chakra-ui](https://chakra-ui.com/) [@chakra_ui](https://twitter.com/chakra_ui)\n- **Hosting**: [Netlify](https://www.netlify.com/)\n- Country flags from [Flagpedia](https://flagpedia.net)\n\n## Install\n\n`npm install` to setup dependencies\n\n## Supabase variables\n\nCreate a `.env` file with `VITE_SUPABASE_URL` and `VITE_SUPABASE_KEY` (see env.example)\n\n## Setup your Supabase project\n\nThe following database table is required:\n\n| Field            | Type      |\n| ---------------- | --------- |\n| id               | BIGINT    |\n| username         | VARCHAR   |\n| text             | TEXT      |\n| country          | VARCHAR   |\n| is_authenticated | BOOLEAN   |\n| timestamp        | timestamp |\n\nSQL query if not using the Supabase interface:\n\n```sql\nCREATE TABLE messages (\n  id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n  username VARCHAR NOT NULL,\n  text TEXT NOT NULL,\n  country VARCHAR,\n  is_authenticated BOOLEAN DEFAULT FALSE,\n  timestamp timestamp default now() NOT NULL\n);\n```\n\nNote: If you're using Supabase interface, don't forget to tick `Enable Realtime` setting after you created the table.\n\n## Setup GitHub authentication (optional)\n\nFollow instrunction [here](https://supabase.io/docs/guides/auth/auth-github)\n\n## Dev\n\n`npm run dev` to run server on port 3000\n\n## Build\n\n`npm run build` to build the react client\n\n# Demo\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Frealtime-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormalhuman01%2Frealtime-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Frealtime-chat/lists"}