{"id":13560692,"url":"https://github.com/alexcalabrese/semantic-kernel-ecom","last_synced_at":"2025-04-03T16:31:01.759Z","repository":{"id":177594845,"uuid":"657133301","full_name":"alexcalabrese/semantic-kernel-ecom","owner":"alexcalabrese","description":"AI-Powered eShopOnWeb E-commerce using Semantic Kernel","archived":false,"fork":false,"pushed_at":"2023-06-30T11:16:18.000Z","size":5380,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-04T12:39:57.678Z","etag":null,"topics":["ai","azure","dall-e","dotnet","openai","semantic-kernel"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexcalabrese.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}},"created_at":"2023-06-22T11:45:42.000Z","updated_at":"2024-09-26T02:47:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd8a9914-b97c-475e-903a-60e26e8de3f3","html_url":"https://github.com/alexcalabrese/semantic-kernel-ecom","commit_stats":null,"previous_names":["alexcalabrese/semantic-kernel-ecom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcalabrese%2Fsemantic-kernel-ecom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcalabrese%2Fsemantic-kernel-ecom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcalabrese%2Fsemantic-kernel-ecom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcalabrese%2Fsemantic-kernel-ecom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcalabrese","download_url":"https://codeload.github.com/alexcalabrese/semantic-kernel-ecom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247036931,"owners_count":20873051,"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":["ai","azure","dall-e","dotnet","openai","semantic-kernel"],"created_at":"2024-08-01T13:00:48.735Z","updated_at":"2025-04-03T16:30:59.932Z","avatar_url":"https://github.com/alexcalabrese.png","language":"C#","funding_links":[],"categories":["Open Source Projects"],"sub_categories":[],"readme":"# AI-Powered eShopOnWeb E-commerce using Semantic Kernel\n\u003e This is the demo used during \"Semantic Kernel: Empower your app with Azure OpenAI\" talk at Azure Day Rome (23/06/2023).\n\n🎯 The objective of this demo is to show how simple is to include AI capabilities in your apps with just a few lines of code.\n\nThis is an empowered version of the [eShopOnWeb](https://github.com/dotnet-architecture/eShopOnWeb) Ecommerce Sample app using [Microsoft Semantic Kernel](https://github.com/microsoft/semantic-kernel).\n\nThe new capabilities consist in:\n\n1. Generate an enhanced prompt from the `Name` and `Description` fields of a new product using a Semantic Function.\n\n2. Use that prompt to create an image of the product using DALL-E.\n\nFor convenience, the new features are located in  `src/ApplicationCore/Entities/Utility.cs`, you can check the code clicking [here](https://github.com/alexcalabrese/semantic-kernel-ecom/blob/main/src/ApplicationCore/Entities/Utility.cs#L8).\n\n\nThis is an example of a generated image using this demo:\n\n\u003cdiv align=\"center\"\u003e\n      \u003cimg\n        src=\"images/generated_image_product.png\"\n        width=\"350\"\n      /\u003e\n\u003c/div\u003e\n\n## Running the sample\n\n\u003e ⚠️ In order to use AI capabilites you have to add a `settings.json` file with your credentials in `src/ApplicationCore/config/`.\n\nThe store's home page should look like this:\n\n![eShopOnWeb home page screenshot](https://user-images.githubusercontent.com/782127/88414268-92d83a00-cdaa-11ea-9b4c-db67d95be039.png)\n\nGo to the PublicApi folder in a terminal window and run `dotnet run` from there. \n\nAfter that from the Web folder you should run `dotnet run --launch-profile Web`. \n\nNow you should be able to browse to `https://localhost:5001/`.\n\nThe admin part in Blazor is accessible to `https://localhost:5001/admin`\n\n## Running the sample in the dev container\n\nThis project includes a `.devcontainer` folder with a [dev container configuration](https://containers.dev/), which lets you use a container as a full-featured dev environment.\n\nYou can use the dev container to build and run the app without needing to install any of its tools locally! You can work in GitHub Codespaces or the VS Code Dev Containers extension.\n\nLearn more about using the dev container in its [readme](/.devcontainer/devcontainerreadme.md).\n\n## Running the sample using Docker\n\nYou can run the Web sample by running these commands from the root folder (where the .sln file is located):\n\n```\ndocker-compose build\ndocker-compose up\n```\n\nYou should be able to make requests to localhost:5106 for the Web project, and localhost:5200 for the Public API project once these commands complete. If you have any problems, especially with login, try from a new guest or incognito browser instance.\n\nYou can also run the applications by using the instructions located in their `Dockerfile` file in the root of each project. Again, run these commands from the root of the solution (where the .sln file is located).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcalabrese%2Fsemantic-kernel-ecom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcalabrese%2Fsemantic-kernel-ecom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcalabrese%2Fsemantic-kernel-ecom/lists"}