{"id":25127769,"url":"https://github.com/zerdicorp/cppscrolls__server","last_synced_at":"2026-04-30T06:33:30.584Z","repository":{"id":115871038,"uuid":"456859334","full_name":"ZERDICORP/cppscrolls__server","owner":"ZERDICORP","description":"A platform where you can solve problems in C++, as well as create your own.","archived":false,"fork":false,"pushed_at":"2022-06-27T07:20:40.000Z","size":1235,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T14:17:37.621Z","etag":null,"topics":["api","cpp","cppscrolls","server"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ZERDICORP.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-02-08T09:10:57.000Z","updated_at":"2022-04-09T21:22:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"69905491-c0ae-4f1e-807a-dff576b6fc70","html_url":"https://github.com/ZERDICORP/cppscrolls__server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZERDICORP/cppscrolls__server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZERDICORP%2Fcppscrolls__server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZERDICORP%2Fcppscrolls__server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZERDICORP%2Fcppscrolls__server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZERDICORP%2Fcppscrolls__server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZERDICORP","download_url":"https://codeload.github.com/ZERDICORP/cppscrolls__server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZERDICORP%2Fcppscrolls__server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32457110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["api","cpp","cppscrolls","server"],"created_at":"2025-02-08T11:18:09.103Z","updated_at":"2026-04-30T06:33:30.567Z","avatar_url":"https://github.com/ZERDICORP.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cppscrolls__server :star2:\n#### A platform where you can solve problems in C++, as well as create your own.\n## Deployment Guide :speaker:\n\u003e All work will be done on arch linux.\n#### 1. Clone the repository\n```\n$ git clone https://github.com/ZERDICORP/cppscrolls__server.git\n```\n#### 2. Check dependencies\n```\n$ java --version\nopenjdk version \"17.0.3\" 2022-04-19\nOpenJDK Runtime Environment (build 17.0.3+3)\nOpenJDK 64-Bit Server VM (build 17.0.3+3, mixed mode)\n$ jar --version\njar 17.0.3\n$ docker --version\nDocker version 20.10.13, build a224086349\n$ nginx -version\nnginx version: nginx/1.20.2\n$ mariadb --version\nmariadb  Ver 15.1 Distrib 10.7.3-MariaDB, for Linux (x86_64) using readline 5.1\n```\n#### 3. Application configuration setting\n\u003e Replace all values between \u003c\u003e.\n```\n$ cd /path/to/cppscrolls__server/src\n$ vi resources/app.cfg\nPORT=8080\n\nAPI_PREFIX=/api\nSECRET=\u003cserver secret key (needed for token system)\u003e\n\nIMAGES_FOLDER_PATH=images/\nSOLUTIONS_FOLDER_PATH=solutions/\n\nEMAIL_SENDER=\u003cemail that will send messages to users\u003e\nEMAIL_SENDER_PASSWORD=\u003cemail password\u003e\n\nDATABASE_USER=\u003cdatabase user\u003e\nDATABASE_PASSWORD=\u003cdatabase user password\u003e\nSQL_DRIVER=org.mariadb.jdbc.Driver\nSQL_CONNECTION_STRING=jdbc:mariadb://localhost:3306/\u003cdatabase name\u003e?autoReconnect=true\n\nDOCKER_RUN_COMMAND=docker run --rm --volume ?:/workspace/main.cpp solution\n```\n#### 4. Nginx configuration setting\n\u003e Replace `\u003cuser\u003e` with your linux user.  \n\u003e Replace `/path/to/images/` with `/path/to/cppscrolls__server/build/images/`.\n```\n$ sudo vim /etc/nginx/nginx.conf\nuser \u003cuser\u003e;\n\nworker_processes 1;\n\nevents {\n  worker_connections 1024;\n}\n\nhttp {\n  include mime.types;\n\n  default_type application/octet-stream;\n  sendfile on;\n  keepalive_timeout 65;\n\n  server {\n    listen 80;\n    server_name localhost;\n\n    location /images/ {\n      index default.jpg;\n      alias /path/to/images/;\n    }\n\n    location /api/ {\n      proxy_pass http://127.0.0.1:8080;\n    }\n  }\n}\n```\n#### 5. Creating a docker image\n```\n$ cd resources/docker/ \u0026\u0026 docker build -t solution . \u0026\u0026 cd ../../\n```\n#### 6. MySQL setup\n```\n$ mysql -u root -p\nMariaDB\u003e create database cppscrolls;\nMariaDB\u003e exit;\n$ mysql -u root -p cppscrolls \u003c resources/mysql/cppscrolls.sql\n```\n#### 7. Server start\n```\n$ ./build \u0026\u0026 cd ../build/ \u0026\u0026 ./run\n```\n#### ~ 8. Delete everything except `build` folder\n```\n$ rm -rf /path/to/cppscrolls__server/{,.[!.],..?}!(build)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerdicorp%2Fcppscrolls__server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerdicorp%2Fcppscrolls__server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerdicorp%2Fcppscrolls__server/lists"}