{"id":19848657,"url":"https://github.com/polterguy/magic.clone","last_synced_at":"2025-07-13T17:34:30.257Z","repository":{"id":42017977,"uuid":"415558538","full_name":"polterguy/magic.clone","owner":"polterguy","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-05T16:59:59.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-01T22:35:56.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ainiro.io","language":"Shell","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/polterguy.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}},"created_at":"2021-10-10T10:54:39.000Z","updated_at":"2023-04-13T17:46:48.000Z","dependencies_parsed_at":"2024-01-02T12:49:05.441Z","dependency_job_id":null,"html_url":"https://github.com/polterguy/magic.clone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polterguy/magic.clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polterguy%2Fmagic.clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polterguy%2Fmagic.clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polterguy%2Fmagic.clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polterguy%2Fmagic.clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polterguy","download_url":"https://codeload.github.com/polterguy/magic.clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polterguy%2Fmagic.clone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265179226,"owners_count":23723428,"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-11-12T13:17:54.773Z","updated_at":"2025-07-13T17:34:30.201Z","avatar_url":"https://github.com/polterguy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# magic.clone - How to clone magic locally\n\nThe magic.clone project helps you clone Magic locally, and assumes you've got VS Code, NodeJS, Angular CLI,\nand the .Net SDK version 6 or higher installed locally. When you've made sure you've got all of these parts,\nclone this repository locally using the following.\n\n```bash\ngit clone https://github.com/polterguy/magic.clone.git\n```\n\nThen run the _\"clone.sh\"_ file, and wait until it's done.\n\n```bash\n./clone.sh\n```\n\nYou now have everything needed to run and debug Magic locally within your _\"src/\"_ folder. Whenever you need to\npull the repositories again simply execute _\"pull.sh\"_ again. To debug, and/or run Magic, type the following\nin a terminal.\n\n```bash\ncd src\n\n# This requires having VS Code locally installed and in your path\ncode ./\n```\n\nThen open _two_ terminal windows in VS Code and type the following into the first.\n\n```bash\ncd magic\ncd backend\ndotnet run --project dev_backend.csproj\n```\n\nType the following into the second terminal window.\n\n```bash\ncd magic\ncd frontend\nnpm install\nng serve\n```\n\nWhen `ng serve` and `dotnet run` is done, you can visit [localhost:4200](https://localhost:4200) in your\nbrowser, and you should be set. Notice, you will need a database to configure Magic. Below are recipies\nfor how to accomplish this if you don't have a database accessible already somewhere.\n\nTo debug Magic, make sure you've got the OmniSharp C# debugger plugin installed in VSCode, click F5 while in VS Code, \nand set breakpoints where you wish to debug Magic locally on your development machine. This is configured through\nthe `.vscode/launch.json` and `.vscode/tasks.json` files. If you started Magic first with `dotnet run` you have to\nstop that process before you start debugging Magic.\n\n## Docker database images\n\nThis project also contains _\"docker-compose.yml\"_ files for SQL Server, PostreSQL, and MySQL, allowing you\nto locally start a database instance using Docker. These files can be found within the _\"db\"_ folder,\nthat contains one folder for each database type, allowing you to test Magic with any of these databases\nlocally. To start for instance SQL Server, execute the following from a terminal.\n\n```bash\ncd db\ncd mssql\ndocker-compose up\n```\n\nThe connection strings for each database type can be found below.\n\n* __SQL Server__ - Server=localhost;Initial Catalog={database};User=sa;Password=Your_password123;\n* __MySQL__ - Server=localhost;Database={database};Uid=root;Pwd=ThisIsNotAGoodPassword;SslMode=Preferred;Old Guids=true;Port=54321;\n* __PostgreSQL__ - User ID=postgres;Password=ThisIsNotAGoodPassword;Host=localhost;Database={database}; Port=54321;\n\n## Copyright and maintenance\n\nThe projects is copyright Thomas Hansen 2023 - 2024, and professionally maintained by [AINIRO.IO](https://ainiro.io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolterguy%2Fmagic.clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolterguy%2Fmagic.clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolterguy%2Fmagic.clone/lists"}