{"id":25872806,"url":"https://github.com/abendayan/web","last_synced_at":"2025-07-11T21:34:26.807Z","repository":{"id":118555002,"uuid":"135062506","full_name":"abendayan/web","owner":"abendayan","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T06:25:12.000Z","size":332,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T08:33:22.678Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abendayan.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-27T16:17:00.000Z","updated_at":"2018-07-16T08:34:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b54959b1-710d-4692-a8ab-546458617597","html_url":"https://github.com/abendayan/web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abendayan/web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abendayan%2Fweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abendayan%2Fweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abendayan%2Fweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abendayan%2Fweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abendayan","download_url":"https://codeload.github.com/abendayan/web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abendayan%2Fweb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264902810,"owners_count":23681123,"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":"2025-03-02T08:28:46.924Z","updated_at":"2025-07-11T21:34:26.800Z","avatar_url":"https://github.com/abendayan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Authors\n\nAdele Bendayan 336141056\n\nOr Soffer 311119671\n\nEti Yanay 312118599\n\n## How to install\n* Install the dependencies by running in the root folder:\n\n      npm install\n\n## Calculator\n\n### Display logic\n\nAs the example on the exercise, it will always display the last number.\nFor example, if the last entry was \"2+34\", it will display 34.\nSupports: +, -, * , /\n\n\n### Testing\nIn the terminal, write:\n\n        mocha\n\n\n## Web Server\n\n### Instruction\n1. run the server.js (listens on port 3000): In the terminal run:\n\n        node server.js\n2.  run through the terminal (in the place YOUR_INPUT, write your input):\n\n        curl http://localhost:3000/calculate -X POST -H 'content-type: application/json' -d '{\"calculatorState\": null, \"input\": \u003cYOUR_INPUT\u003e}'       \n\nOther option: run through the browser 'http://localhost:3000/' and after each input, press \"submit\".\n\n### Integration Test\nIn the terminal, write:\n\n        npm test\n\n## Docker\n\n### DockerFile\n\n#### Build instruction\nRun:\n\n      docker build -t web/node-web-app .\n\n#### Running instruction\n\nRun:\n\n      docker run -p 49160:3000 -d web/node-web-app\n\nThe website is now accessible at: http://localhost:49160\nLike previously, it can be tested using curl with:\n    curl http://localhost:49160/calculate -X POST -H 'content-type: application/json' -d '{\"calculatorState\": null, \"input\": \u003cYOUR_INPUT\u003e}'  \n\n### Docker-Compose\n\nRun:\n\n    docker-compose build\n    docker-compose up\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabendayan%2Fweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabendayan%2Fweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabendayan%2Fweb/lists"}