{"id":15020950,"url":"https://github.com/udovin/solve","last_synced_at":"2025-10-26T19:30:45.010Z","repository":{"id":37923964,"uuid":"190704994","full_name":"udovin/solve","owner":"udovin","description":"API driven competitive programming system","archived":false,"fork":false,"pushed_at":"2024-10-27T19:46:43.000Z","size":55865,"stargazers_count":19,"open_issues_count":14,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T05:57:00.166Z","etag":null,"topics":["api","competitive-programming","docker-image","golang","online-judge"],"latest_commit_sha":null,"homepage":"https://solve.by","language":"Go","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/udovin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT.txt","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":"2019-06-07T07:31:48.000Z","updated_at":"2024-09-29T16:00:04.000Z","dependencies_parsed_at":"2023-10-15T01:33:19.979Z","dependency_job_id":"b4b7304d-bae0-4e31-878c-175e77fbcf4f","html_url":"https://github.com/udovin/solve","commit_stats":{"total_commits":776,"total_committers":3,"mean_commits":258.6666666666667,"dds":"0.14046391752577314","last_synced_commit":"1b266a7193b2c1470246d513573a4aa3d09665cd"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udovin%2Fsolve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udovin%2Fsolve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udovin%2Fsolve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udovin%2Fsolve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udovin","download_url":"https://codeload.github.com/udovin/solve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238386306,"owners_count":19463339,"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":["api","competitive-programming","docker-image","golang","online-judge"],"created_at":"2024-09-24T19:55:55.671Z","updated_at":"2025-10-26T19:30:37.142Z","avatar_url":"https://github.com/udovin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solve\n\n[![GoDoc](https://godoc.org/github.com/udovin/solve?status.svg)](https://godoc.org/github.com/udovin/solve)\n[![codecov](https://codecov.io/gh/udovin/solve/branch/master/graph/badge.svg)](https://codecov.io/gh/udovin/solve)\n[![Go Report Card](https://goreportcard.com/badge/github.com/udovin/solve)](https://goreportcard.com/report/github.com/udovin/solve)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6577/badge)](https://bestpractices.coreinfrastructure.org/projects/6577)\n\nSolve is distributed under the terms of both the MIT license and the Apache 2.0 License.\n\n# How to start development\n\nFirst of all you should build `solve` and `safeexec` binaries:\n\n```bash\nmake all\n```\n\nThen create config file `config.json` with following contents:\n\n```json\n{\n  \"db\": {\n    \"driver\": \"sqlite\",\n    \"options\": {\n      \"path\": \"data/db.sqlite\"\n    }\n  },\n  \"server\": {\n    \"port\": 4242\n  },\n  \"invoker\": {\n    \"workers\": 1,\n    \"safeexec\": {\n      \"path\": \"cmd/safeexec/safeexec\"\n    }\n  },\n  \"security\": {\n    \"password_salt\": \"qwerty123\",\n    \"cookie_path\": \"/\"\n  },\n  \"storage\": {\n    \"driver\": \"local\",\n    \"options\": {\n      \"files_dir\": \"data/files\"\n    }\n  },\n  \"log_level\": \"debug\"\n}\n```\n\nThen apply database migrations:\n\n```bash\nmkdir -p data \u0026\u0026 ./cmd/solve/solve migrate \u0026\u0026 ./cmd/solve/solve migrate-data\n```\n\nThen run server (API will be available on `http://localhost:4242`):\n\n```bash\n./cmd/solve/solve server\n```\n\nThen you can register new `admin` user with password `qwerty123`:\n\n```bash\n./cmd/solve/solve client create-user \\\n  --login admin \\\n  --password qwerty123 \\\n  --email admin@gmail.com \\\n  --add-role admin_group\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudovin%2Fsolve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudovin%2Fsolve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudovin%2Fsolve/lists"}