{"id":21428072,"url":"https://github.com/redhat-developer-demos/netcandystore","last_synced_at":"2025-07-14T10:31:43.601Z","repository":{"id":44466783,"uuid":"360634815","full_name":"redhat-developer-demos/netcandystore","owner":"redhat-developer-demos","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-22T17:54:39.000Z","size":44963,"stargazers_count":3,"open_issues_count":0,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-08T06:51:10.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/redhat-developer-demos.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-04-22T17:50:15.000Z","updated_at":"2023-03-26T20:04:13.000Z","dependencies_parsed_at":"2022-09-19T20:14:12.301Z","dependency_job_id":null,"html_url":"https://github.com/redhat-developer-demos/netcandystore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-developer-demos/netcandystore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnetcandystore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnetcandystore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnetcandystore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnetcandystore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/netcandystore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnetcandystore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265280659,"owners_count":23739852,"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-22T22:10:12.709Z","updated_at":"2025-07-14T10:31:38.579Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetCandyStore\n.NET Framework online Candy Store using Windows Containers in OpenShift\n\n# Prerequisites\n1. Access to an OpenShift cluster that supports Windows Containers\n1. The `oc` command-line interface for OpenShift\n\n# Table of Contents/Steps\n1. Create a cluster that supports Windows Containers\n1. Create a project\n1. Create and populate the MS SQL Server database\n1. Prepare Windows Container node\n1. Create the service 'netcandystore'\n1. Create route for service 'netcandystore'\n1. Create the service 'getcategories'\n1. COMING SOON: Replace the service 'netcandystore\" using image netcandystore:v2\n\n## Step 1: Create a cluster the supports Windows Containers\n(some RHPDS magic here)\n\n## Step 2: Create a project\nAt the command line, run the command  \n`oc new-project netcandystore`\n\nAlternatively, you can use the OpenShift console to create the new project \"netcandystore\".\n\n## Step 3: Create and populate the MS SQL Server database\nFor the purposes of this demo, this instance of MS SQL Server will run in our OpenShift cluster.\n\n### Linux and macOS\nRun the script `create_database.sh`  \n\n### PowerShell\nRun the script `create_database.ps1`\n\n## Step 4: Prepare Windows Container node\nThis step will pull the image into the node running Windows Containers.\n\n### Linux and macOS  \nRun the command:  \n`./prepare-preload.sh`  \n\n### PowerShell  \n\nRun the command:  \n`./preload.ps1`  \n\n## Step 5: Create the service 'netcandystore'\nThe service runs in a Windows Container and uses the image quay.io/donschenck/netcandystore:2021mar8.1\n\nRun the command:  \n`oc create -f preload.yaml`  \n\nRun the following command and wait until the preload job is finished:  \n`oc get jobs -n openshift-windows-machine-config-operator -w`\n\nWhen the job is completed, press Ctrl-C to exit the wait command.\n\nRun the command:  \n`oc apply -f netcandystore.yaml`\n\n## Step 6: Create route for service 'netcandystore'\n\n### PowerShell\nRun the command:  \n`oc apply -f netcandystore-route.yaml`  \n\n## Step 7: Create the service 'getcategories'\n### PowerShell  \nRun the command:  \n`oc apply -f getcategories.yaml`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fnetcandystore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fnetcandystore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fnetcandystore/lists"}