{"id":24813690,"url":"https://github.com/am4nn/online-judge-project","last_synced_at":"2025-10-13T17:31:06.392Z","repository":{"id":39338821,"uuid":"506909170","full_name":"Am4nn/Online-Judge-Project","owner":"Am4nn","description":"A MERN-Based Website that remotely runs and compiles user submitted code for a programming problem securely and judges if the code is correct/wrong","archived":false,"fork":false,"pushed_at":"2024-10-13T16:28:16.000Z","size":25398,"stargazers_count":31,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T14:11:50.338Z","etag":null,"topics":["aws-ec2-ubuntu","docker","expressjs","javascript","mern-stack","mongoatlas","mui","nodejs","polling","reactjs","redis","redux","redux-toolkit","server","webdevelopment"],"latest_commit_sha":null,"homepage":"https://oj.amanarya.com","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/Am4nn.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":"2022-06-24T06:54:53.000Z","updated_at":"2025-03-22T09:38:44.000Z","dependencies_parsed_at":"2024-08-11T09:33:25.872Z","dependency_job_id":null,"html_url":"https://github.com/Am4nn/Online-Judge-Project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Am4nn/Online-Judge-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FOnline-Judge-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FOnline-Judge-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FOnline-Judge-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FOnline-Judge-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Am4nn","download_url":"https://codeload.github.com/Am4nn/Online-Judge-Project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FOnline-Judge-Project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016290,"owners_count":26085828,"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-10-13T02:00:06.723Z","response_time":61,"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":["aws-ec2-ubuntu","docker","expressjs","javascript","mern-stack","mongoatlas","mui","nodejs","polling","reactjs","redis","redux","redux-toolkit","server","webdevelopment"],"created_at":"2025-01-30T15:51:41.613Z","updated_at":"2025-10-13T17:31:04.593Z","avatar_url":"https://github.com/Am4nn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Online-Judge | Online-Coding-Platform | (MERN-Based Website)\n\n- Build a platform that remotely runs and compiles user submitted code for a programming problem securely and judges if the code is correct/wrong\n- Provided access to users to keep track of submitted code by maintaining Leaderboard and history of submissions\n- Used Docker and Sandboxing techniques to make online judge more secure\n- Used Poling and Queue to handle multiple requests\n- Deployed and can be used by many users by Horizontal Scaling\n- You can visit Live site here: [Online Judge](https://oj.amanarya.com)\n\n## Run Online-Judge Locally\n\n- Navigate to client directory and install all dependencies for client side code using command : `npm install` and then run `npm start` to run react on [PORT 3000](https://localhost:3000)\n- Navigate to the server directory and install the dependencies using the command `npm install`\n- To run the server you must have `Docker` and `Redis` version greater than or equal to `2.8.18` installed on your PC\n- If you are using Windows, install WSL for using `redis-server` and use `Docker-Desktop` for using `Docker`\n- Server also uses `MongoDB`, either you can use mongodb-local or mongodb-atlas\n- To use mongodb-atlas create a `.env` file and define a key named `DB_URL` and its value will be your atlas URL. To use mongodb-local no need to define `DB_URL` in `.env`\n- Server uses cookies to handle authentication, which uses `JWT_SECRET` which is also defined in the `.env` file\n- After all these steps you are all set to run the server. Use the command `npm start`. The server will start on [PORT 5000](https://localhost:5000)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam4nn%2Fonline-judge-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fam4nn%2Fonline-judge-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam4nn%2Fonline-judge-project/lists"}