{"id":13706492,"url":"https://github.com/red-gate/spawn-demo","last_synced_at":"2025-05-05T20:31:47.820Z","repository":{"id":46719587,"uuid":"337120859","full_name":"red-gate/spawn-demo","owner":"red-gate","description":"Demo application to show how Spawn can be integrated in Development and CI","archived":false,"fork":false,"pushed_at":"2023-07-28T09:28:09.000Z","size":481,"stargazers_count":14,"open_issues_count":0,"forks_count":6,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-08-03T22:17:41.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/red-gate.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}},"created_at":"2021-02-08T15:30:19.000Z","updated_at":"2024-04-08T13:59:30.000Z","dependencies_parsed_at":"2022-09-07T05:51:19.044Z","dependency_job_id":null,"html_url":"https://github.com/red-gate/spawn-demo","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/red-gate%2Fspawn-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-gate%2Fspawn-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-gate%2Fspawn-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-gate%2Fspawn-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/red-gate","download_url":"https://codeload.github.com/red-gate/spawn-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224465912,"owners_count":17315896,"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-08-02T22:00:58.022Z","updated_at":"2024-11-13T14:31:16.208Z","avatar_url":"https://github.com/red-gate.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# Spawn demo app\n\nThis app showcases a semi complex application that takes advantage of [Spawn](https://spawn.cc/) to simplify development.\n\n## Architecture\n\nThe application is a simple \"Todo\" application. It's architecture is as follows:\n\n* C# ASP.NET Core WebAPI\n* ReactJS Frontend\n* Microsoft SQL Server database (for \"account\" information)\n* PostgreSQL database (for \"todo\" item information)\n\n![architecture.png](./docs/architecture.png)\n\n## Running in Gitpod\n\nClick the badge below to open this repository in Gitpod with all of the dependencies installed and ready to go.\n\n[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/red-gate/spawn-demo)\n\n## Running this locally\n\nTo get up and running with this application, perform the following:\n\n1) Clone the repository\n2) Open it up in VS Code\n3) Hit F5\n\nThis will:\n\n* Provision two [Spawn data containers](https://spawn.cc/docs/concepts-data-container). One for the Todo database and another for the Account database.\n* Start the API server with the configuration returned from Spawn to connect to the databases.\n* Start the Frontend\n\nNOTE: Running the application this way assumes that the spawn data images already exist. If they do not, you must create them.\n\nThe spawn data image names are configured in the [.env](.env) file. You can change these if necessary.\n\n### Subsequent restarts\n\nSubsequent restarts (F5) will **reuse the spawn data containers**. That means any modification to the database between restarts calls will **persist**.\n\nIf you want to get _fresh_ containers, [then you can delete the Spawn data containers](https://spawn.cc/docs/spawnctl-dc-delete) and the startup script will reprovision them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-gate%2Fspawn-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred-gate%2Fspawn-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-gate%2Fspawn-demo/lists"}