{"id":18926009,"url":"https://github.com/murshidazher/code-compiler","last_synced_at":"2026-04-09T12:02:44.104Z","repository":{"id":104058600,"uuid":"265145470","full_name":"murshidazher/code-compiler","owner":"murshidazher","description":"A super light-weight code compiler using Express.js","archived":false,"fork":false,"pushed_at":"2020-07-17T09:34:09.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-25T00:35:40.134Z","etag":null,"topics":["code-compiler","compiler","csharp","expressjs","java","nodejs","python","test-case-generation"],"latest_commit_sha":null,"homepage":"","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/murshidazher.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":"2020-05-19T04:33:22.000Z","updated_at":"2023-01-20T22:31:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"81a3b140-6db4-4f94-aa41-c935e3b9c04f","html_url":"https://github.com/murshidazher/code-compiler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/murshidazher/code-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murshidazher%2Fcode-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murshidazher%2Fcode-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murshidazher%2Fcode-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murshidazher%2Fcode-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murshidazher","download_url":"https://codeload.github.com/murshidazher/code-compiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murshidazher%2Fcode-compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276273642,"owners_count":25614217,"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-09-21T02:00:07.055Z","response_time":72,"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":["code-compiler","compiler","csharp","expressjs","java","nodejs","python","test-case-generation"],"created_at":"2024-11-08T11:14:07.122Z","updated_at":"2025-09-21T17:00:24.651Z","avatar_url":"https://github.com/murshidazher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Code Compiler](https://github.com/murshidazher/code-compiler)\n\n\u003e A super light-weight code compiler using Express.js\n \nA light-weight code compiler with test case checking and much more... implemented using Express.js\n\n## Technology Stack\n* :zap: [ExpressJS](https://expressjs.com/) - lightweight web framework for Nodejs.\n\n### Native Compiler Dependencies\n\nYou need to have the following compilers installed\n\n* :package: [JavaSE JDK 11+](https://www.oracle.com/java/technologies/javase-jdk13-downloads.html) - Java SDK 11+ for single-line compilation\n* :package: [Python 3](https://www.python.org/downloads/) - download the Python 3.+ version and set the `env` path\n* :package: [.NET Compiler](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe) - Enable command-line compilation for CSharp .NET and the set the `env` variable to access `csc` compiler\n\n### Instructions\n\nStep by Step Instructions:\n\n| Task             | Description                                                                                                                                     |\n| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |\n| dependencies         | Run `npm i` to download the required node modules \n| start         | Run `npm start` to start react in dev mode using nodemon\n| test        | Run `npm run test` to run unit tests.\n\n### :open_file_folder: What's inside?\n\nA quick look at the folder structure of this project.\n    \n    .\n    └── root\n        ├─controllers\n        ├───csFile.js\n        ├───javaFile.js\n        └───pythonFile.js\n        ├─middleware\n        └───writeToFile.js\n        ├─questions\n          ├─question_name\n          ├───csharp\n              ├───Solution.cs\n              ├───SolutionTester.cs\n              ├───RealSolution.cs\n              └───Template.cs\n          ├───java\n          ├───javascript\n          ├───python\n          └───testcase.txt \n        ├─package.json\n        ├─package-lock.json\n        ├─server.js\n        └─README.md\n\n### Support Programing Languages\n\n\u003e:bulb: You can use this tool to escape code characters when testing [code-santizer](https://www.freeformatter.com/java-dotnet-escape.html#ad-output)\n\n- [x] Python\n- [x] Java\n- [x] CSharp\n- [x] JavaScript\n\n\n## Body Request Configuration\n\n#### Argument 1\nName: `code`\u003cbr/\u003e\nType: `String`  \n\u003e Default: :warning: This field is required\n\nThis contains the solution for the given problem. \n\n\u003e :warning: Sanitize the code before sending it through the body.\n\n#### Argument 2\nName: `input`\u003cbr/\u003e\nType: `String`  \nDefault: `null`\n\nThis contains the user inputs for the given problem. It could be `null` if there isn't any user inputs.\n\n\nExample:\n```json\n// endpoint - http://localhost:4001/python\n{\n    \"code\":\"class Solution(object):\\r\\n    \n                def twoSum(self, nums, target):\\r\\n       \n                    if nums is None :\\r\\n            \n                        return [1,0]\\r\\n        \n                    if len(nums) \u003c= 1:\\r\\n            \n                        return [0,0]\\r\\n        \n                    buff_dict = {}\\r\\n       \n                    for i in range(len(nums)):\\r\\n            \n                        if nums[i] in buff_dict:\\r\\n               \n                            return [buff_dict[nums[i]], i]\\r\\n            \n                        else:\\r\\n                \n                            buff_dict[target - nums[i]] = i\",\n\t\"input\":\"10\"\n}\n```\n\n### Supporting Test Case Languages\n\n- [x] Python\n- [x] Java\n- [x] CSharp\n- [x] JavaScript\n\n## Contributors\n\n**Murshid Azher**\n\n- Github: [@murshidazher](https://github.com/murshidazher)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurshidazher%2Fcode-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurshidazher%2Fcode-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurshidazher%2Fcode-compiler/lists"}