{"id":21343759,"url":"https://github.com/catalystcode/project-estrella-services","last_synced_at":"2025-08-10T10:06:23.073Z","repository":{"id":73517164,"uuid":"94860279","full_name":"CatalystCode/project-estrella-services","owner":"CatalystCode","description":"Backend services for project-estrella","archived":false,"fork":false,"pushed_at":"2017-06-27T11:04:32.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-08T13:42:02.316Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CatalystCode.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-20T07:03:34.000Z","updated_at":"2017-06-20T07:23:15.000Z","dependencies_parsed_at":"2023-06-01T06:30:20.993Z","dependency_job_id":null,"html_url":"https://github.com/CatalystCode/project-estrella-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CatalystCode/project-estrella-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fproject-estrella-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fproject-estrella-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fproject-estrella-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fproject-estrella-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatalystCode","download_url":"https://codeload.github.com/CatalystCode/project-estrella-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fproject-estrella-services/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269706801,"owners_count":24462237,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-22T01:15:10.765Z","updated_at":"2025-08-10T10:06:23.048Z","avatar_url":"https://github.com/CatalystCode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# project-estrella-services\nBackend services for project-estrella\n\n## Configure\nEnsure the following AppSettings are provided (either as env settings or within the `localConfig.json`):\n```\n{\n    \"AZURE_STORAGE_ACCOUNT\" : \"YOUR_ACCOUNT_NAME\",\n    \"AZURE_STORAGE_ACCESS_KEY\" : \"YOUR_ACCOUNT_KEY\",\n    \"PORT\" : 8080\n}\n```\n\n## api/prediction\nThe `prediction` api returns a stored value of a prediction (which has been initiated through a previous call to a `api/model` `PUT`)\n\n### GET api/prediction/model?model_name=City\u0026model_group=Mexico\u0026interval=11\nReturns a prediction for the specified model and interval\n\n### POST api/prediction\nRuns a prediction using the specified model\n\n```js\n{\n  \"model_group\" : \"Mexico\",\n  \"model_name\" : \"City\",\n\t\"model_interval\" : 2,\n\t\"model_arguments\" :  {\n      \"meantemp\": 4,\n      \"rainsum\": 3.5\n\t\t}\n}\n```\n\nThis posts the following message to the queue:\n```js\n{\n   \"model_query\": {\n    \"model_group\": \"Mexico\",\n    \"model_name\": \"City\",\n    \"model_interval\": 2,\n    \"model_arguments\": {\n      \"meantemp\": 4,\n      \"rainsum\": 3.5\n    }\n  }\n}\n```\n\n## api/model\nThe `model` api is used to interact with the model definition:\n`POST` uploads the model\n`GET` returns the model definition\n\n### POST api/model \n```js\n{\n\t\"model_group\" : \"Mexico\",\n\t\"model_name\" : \"City\",\n\t\"model_intervals\" : 52,\n\t\"model_frequency\" : \"weekly\",\n\t\"model_parameters\" : \t{\n\t\t\"interval\" : {\"type\" :\"integer\"},\n\t\t\"arguments\" :  {\n\t\t\t\"meantemp\" : {\"type\" :\"integer\"}, \n\t\t\t\"rainsum\" : {\"type\" :\"float\"}\n\t\t}\n\t}\n}\n```\n### GET api/model?model_name=City\u0026model_group=Mexico \n```js\n{\n  \"model_group\": \"Mexico\",\n  \"model_name\": \"City\",\n  \"model_url\": \"demoUrl\",\n  \"model_intervals\": 52,\n  \"model_frequency\": \"weekly\",\n  \"model_parameters\": {\n    \"interval\": {\n      \"type\": \"integer\"\n    },\n    \"arguments\": {\n      \"meantemp\": {\n        \"type\": \"integer\"\n      },\n      \"rainsum\": {\n        \"type\": \"float\"\n      }\n    }\n  }\n}\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalystcode%2Fproject-estrella-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalystcode%2Fproject-estrella-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalystcode%2Fproject-estrella-services/lists"}