{"id":18886055,"url":"https://github.com/meldiron/almost-casino","last_synced_at":"2025-07-10T00:06:10.609Z","repository":{"id":110948409,"uuid":"499820347","full_name":"Meldiron/almost-casino","owner":"Meldiron","description":"Almost Casino: Fake casino built with Appwrite and Svelte Kit","archived":false,"fork":false,"pushed_at":"2022-06-04T22:26:47.000Z","size":503,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T22:15:25.528Z","etag":null,"topics":["appwrite","ssr","svelte","sveltekit"],"latest_commit_sha":null,"homepage":"https://app.almost-casino.matejbaco.eu/","language":"Svelte","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/Meldiron.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":"2022-06-04T12:30:35.000Z","updated_at":"2025-02-22T13:48:03.000Z","dependencies_parsed_at":"2023-03-12T03:30:59.806Z","dependency_job_id":null,"html_url":"https://github.com/Meldiron/almost-casino","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Meldiron/almost-casino","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meldiron%2Falmost-casino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meldiron%2Falmost-casino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meldiron%2Falmost-casino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meldiron%2Falmost-casino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meldiron","download_url":"https://codeload.github.com/Meldiron/almost-casino/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meldiron%2Falmost-casino/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505761,"owners_count":23618966,"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":["appwrite","ssr","svelte","sveltekit"],"created_at":"2024-11-08T07:24:05.329Z","updated_at":"2025-07-10T00:06:10.582Z","avatar_url":"https://github.com/Meldiron.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎰 Almost Casino\n\n![Cover](docs/screen-game.png)\n\n![Cover](docs/screen-intro.png)\n\n## 👋 Introduction\n\nAlmost Casino is a fake online casino that supports one game - coin flip. The website is mainly useful for developers serving as demo application using Appwrite and Sveite Kit.\n\nProject focuses on multiple aspects:\n\n- Appwrite Backend\n- Secure use of Appwrite\n- Svelte and Svelte Kit\n- SSR using Svelte (and Vercel)\n\nProof of server-side rendering kicking in properly with Appwrite and Svelte Kit (hosted on Vercel):\n\n![Cover](docs/screen-ssr.png)\n\n## 🤖 Tech Stack\n\nAlmost Casino uses multiple frontend and backend technologies with focus of simplifying the development. Main focus of tech stack in this project is to make development fast and fun, instead of making it scalable and micro-optimized.\n\n- **[Appwrite](https://appwrite.io/)**, a secure backend as a service that provides 90% of necessary backend functionality out of the box\n- [TailwindCSS](https://tailwindcss.com/), a CSS library to rapidly design components using HTML classes\n- [Svelte](https://svelte.dev/), a JS library to build reactive frontend. Alongside this, application uses [TypeScript](https://www.typescriptlang.org/)\n- [Svelte Kit](https://kit.svelte.dev/), a Svelte framework to give proejct proper structure, routing and other cool features\n- [Vercel](https://vercel.com/), a static site hosting with amazing deployment flow using Git\n\n## 💻 Development Setup\n\n**Frontend:**\n\n1. Install dependencies: `npm install`\n2. Spin-up HTTP server: `npm run dev`\n3. Visit [localhost:3000](http://localhost:3000/)\n\n**Backend:**\n\n\u003e 🚨 There is a bug in Vercel adapter! Please rename file from `_appwrite.json` to `appwrite.json` after cloning this repository. 🚨\n\n\u003e You only need to spin-up backend if you man on backend changes. For frontend changes, you can skip this step as project is connected to production backend instance.\n\n1. Install [Appwrite](https://appwrite.io/docs/installation) locally, or on development server\n2. Sign up into your Appwrite instance and create project with both name and ID set to `almostCasino`\n3. Install [Appwrite CLI](https://appwrite.io/docs/command-line) locally, and login: `appwrite login`\n4. Deploy collections: `appwrite deploy collection`\n5. Deploy functions: `appwrite deploy functions`, and configute environment variables in Appwite Web Console\n\nTo prepare your changes from your Appwrite instance database to production one:\n\n1. Pull database changes: `appwrite init collection`\n\nTo create a new function:\n\n1. Create function: `appwrite init function`\n\nFeel free to do manual changes to [appwrite.json](appwrite.json) if you are familiar with this file.\n\n## 🚀 Deployment\n\n**Frontend:**\n\n1. Install dependencies: `npm install`\n2. Build project: `npm run build`\n3. Deploy folder `build` on a static hosting\n\n\u003e Frontend build does not use any special environment variables.\n\n**Backend:**\n\n1. Deploy database changes, if necessary: `appwrite deploy collection`\n2. Deploy function changes, if necessary: `appwrite deploy function`\n\n---\n\nAssets used in the project made by [Alex Martynov](https://www.figma.com/community/file/1096465749704772913).\n\n---\n\n## 📚 Svelte Kit Resources (Generated)\n\nEverything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).\n\n## Creating a project\n\nIf you're seeing this, you've probably already done this step. Congrats!!!\n\n```bash\n# create a new project in the current directory\nnpm init svelte\n\n# create a new project in my-app\nnpm init svelte my-app\n```\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```bash\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nTo create a production version of your app:\n\n```bash\nnpm run build\n```\n\nYou can preview the production build with `npm run preview`.\n\n\u003e To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeldiron%2Falmost-casino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeldiron%2Falmost-casino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeldiron%2Falmost-casino/lists"}