{"id":25696311,"url":"https://github.com/arithefirst/svchat","last_synced_at":"2026-04-13T00:11:09.254Z","repository":{"id":271323192,"uuid":"911711118","full_name":"arithefirst/svchat","owner":"arithefirst","description":"SVChat is a simple chat app built with SvelteKit and Apache Cassandra","archived":false,"fork":false,"pushed_at":"2025-02-24T03:28:48.000Z","size":703,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T04:19:27.281Z","etag":null,"topics":["cassandra","postgresql","shadcn","svelte","sveltekit","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arithefirst.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":"2025-01-03T16:59:24.000Z","updated_at":"2025-02-24T03:28:51.000Z","dependencies_parsed_at":"2025-01-07T02:39:52.362Z","dependency_job_id":"e4e92f76-fe8e-4158-8714-f29bdcd015e7","html_url":"https://github.com/arithefirst/svchat","commit_stats":null,"previous_names":["arithefirst/sv-chat","arithefirst/svchat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arithefirst%2Fsvchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arithefirst%2Fsvchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arithefirst%2Fsvchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arithefirst%2Fsvchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arithefirst","download_url":"https://codeload.github.com/arithefirst/svchat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240587541,"owners_count":19825004,"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":["cassandra","postgresql","shadcn","svelte","sveltekit","tailwindcss"],"created_at":"2025-02-25T01:44:16.131Z","updated_at":"2026-04-13T00:11:09.246Z","avatar_url":"https://github.com/arithefirst.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SVChat\n\nA simple chat app built with SvelteKit and Apache Cassandra\u003cbr\u003e\n\n[![Prettier](https://github.com/arithefirst/sv-chat/actions/workflows/prettier.yml/badge.svg)](https://github.com/arithefirst/sv-chat/actions/workflows/prettier.yml)\n[![ESLint](https://github.com/arithefirst/sv-chat/actions/workflows/eslint.yml/badge.svg)](https://github.com/arithefirst/sv-chat/actions/workflows/eslint.yml)\n[![Playwright](https://github.com/arithefirst/sv-chat/actions/workflows/playwright.yml/badge.svg)](https://github.com/arithefirst/sv-chat/actions/workflows/playwright.yml)\n\n## 💻 Techstack\n\n![Techstack](https://go-skill-icons.vercel.app/api/icons?i=cassandra,docker,socketio,sqlite,svelte,tailwindcss,ts)\n\n- Cassandra and SQLite for storing messages and user data respectively\n- Docker for easier deployments\n- SvelteKit and TypeScript for backend\n- TailwindCSS and ShadCN Svelte for frontend\n- SocketIO for communication between connected clients\n\n## 🐋 Deploying (Docker)\n\nTo deploy with Docker, you will need to have both `docker` and `docker-compose` installed.\n\n1. **Pull down the `compose.yaml` file**\n\n   ```bash\n   curl https://raw.githubusercontent.com/arithefirst/svchat/refs/heads/master/compose.yaml -o compose.yml\n   ```\n\n2. **Edit the service details**\u003cbr\u003e\n   Open `compose.yaml` in the editor of your choice and replace the following enviroment variables:\n\n   - `ORIGIN`: The URL of your production deployment (no trailing slash)\n   - `CASSANDRA_USER`: Database Username\n   - `CASSANDRA_PASSWORD`: Database Password\n   - `MINIO_ROOT_USER`: S3 Bucket Username\n   - `MINIO_ROOT_PASSWORD`: S3 Bucket Password\n\n3. **Start the stack**\n   ```bash\n       docker-compose up -d # Starts detatched\n       docker-compose up # Starts attatched\n   ```\n4. **Done!**\u003cbr\u003e\n   Yes, it's really that easy! You can now access your deployment at `http://hostname:3000`, where hostname is the hostname or IP Address of your machine.\n\n## 🚀 Deploying (Manual)\n\n\u003e [!TIP]\n\u003e This installation method is not reccomended. Unless you have a specific reason not to use Docker, we suggest you do so! Our docker image is kept fully up-to-date and gets re-built on every push to the repository.\n\n1. [**Setup Apache Cassandra**](https://cassandra.apache.org/doc/latest/cassandra/getting-started/cassandra-quickstart.html)\n2. [**Setup Minio**](https://charts.min.io/)\n3. **Clone the repo**\n   ```bash\n   git clone https://github.com/arithefirst/svchat\n   ```\n4. **Install deps**\u003cbr\u003e\n   In this example, I use [`bun`](https://bun.sh), but any NPM compatible package manager should work just fine!\n   ```bash\n   bun install\n   ```\n5. **Run DB Migrations**\u003cbr\u003e\n   Running the DB Migrations sets up the tables in the SQLite users DB, and allows for functional user authenticaton.\n\n   ```bash\n   bun run migrate\n   ```\n\n6. **Set Enviroment Variables**\u003cbr\u003e\n   In order for the server to connect to Cassandra and Minio, the credentials need to be set in `.env`. You will also need to set the production URL of your instance, to make sure CORS dosen't throw a fit.\n\n   ```ini\n   # Example '.env' file\n   CASSANDRA_USER=admin\n   CASSANDRA_PASSWORD=admin\n   MINIO_ROOT_USER=minioadmin\n   MINIO_ROOT_PASSWORD=minioadmin\n   ORIGIN=http://localhost:3000\n   ```\n\n\u003e [!WARNING]\n\u003e The above DB and S3 credentials are just for example, and it is highly reccomended that you change them for security purposes.\n\n7. **Build**\n\n   ```bash\n   bun run build\n   ```\n\n8. **Start the server**\n\n   ```bash\n   bun run production\n   ```\n\n9. **Done!**\u003cbr\u003e\n   You can now access your deployment at `http://hostname:3000`, where hostname is the hostname or IP Address of your machine.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farithefirst%2Fsvchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farithefirst%2Fsvchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farithefirst%2Fsvchat/lists"}