{"id":16116796,"url":"https://github.com/serprex/openetg","last_synced_at":"2025-04-06T04:09:21.947Z","repository":{"id":12208371,"uuid":"14814565","full_name":"serprex/openEtG","owner":"serprex","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-29T17:31:54.000Z","size":28003,"stargazers_count":73,"open_issues_count":3,"forks_count":25,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-30T03:03:37.960Z","etag":null,"topics":["ccg","game","html5"],"latest_commit_sha":null,"homepage":"https://etg.dek.im","language":"Rust","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/serprex.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":"2013-11-30T03:27:21.000Z","updated_at":"2025-02-24T00:46:04.000Z","dependencies_parsed_at":"2023-01-11T20:17:42.190Z","dependency_job_id":"b6abac27-c4ff-4480-a6e6-7d154cf8b8ea","html_url":"https://github.com/serprex/openEtG","commit_stats":{"total_commits":3702,"total_committers":15,"mean_commits":246.8,"dds":0.1112911939492166,"last_synced_commit":"d220d37bd655f23d8ad688028f6a3f84e95d5d17"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serprex%2FopenEtG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serprex%2FopenEtG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serprex%2FopenEtG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serprex%2FopenEtG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serprex","download_url":"https://codeload.github.com/serprex/openEtG/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430869,"owners_count":20937874,"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":["ccg","game","html5"],"created_at":"2024-10-09T20:26:02.089Z","updated_at":"2025-04-06T04:09:21.825Z","avatar_url":"https://github.com/serprex.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/serprex/openEtG/workflows/.github/workflows/cargo-test.yml/badge.svg)](https://github.com/serprex/openEtG/actions?query=workflow%3A.github%2Fworkflows%2Fcargo-test.yml)\n\nopenEtG is an open source fork of the Flash ccg [Elements the Game](http://elementsthegame.com).\n\n## Developer Instructions\n\n### Getting Started\n1. Download all dependencies listed below\n2. Clone the repository:\n   ```sh\n   git clone https://github.com/serprex/openEtG \u0026\u0026 cd openEtG\n   ```\n3. Install packages:\n   ```sh\n   npm install\n   ```\n4. Generate asset atlas:\n   ```sh\n   npm run build-atlas\n   ```\n5. Copy sample configuration files:\n   ```sh\n   cp config-sample.json config.json\n   cp wsconfig-sample.json wsconfig.json\n   ```\n6. Configure `config.json` to connect your instance of postgresql\n   - Specify the http port you will listen on for web service requests\n     - This should match your `wsconfig.json` `wsport`\n   - Specify the user to connect your postgres server\n     - Ensure that you created the user on your postgres server and provided proper permissions\n   - Specify the host of your postgres server\n   - Specify the port number of your postgres server\n   - Specify the database name you created on your postgres server\n   - If certificates are required to access your instance, they can be included under the `certs` key\n7.\n   - `psql -f scripts/initdb.sql` will generate initial schema\n8. Install WASM rust target\n   ```sh\n   rustup target add wasm32-unknown-unknown\n   ```\n9. Build\n   ```sh\n   npm run build\n   ```\n10. Run server\n   ```sh\n   cd ./src/rs/server\n   cargo run\n   ```\n### Testing\n\n1. Add unit tests to `lib.rs`\n2. To run unit tests:\n   ```sh\n   cargo test --manifest-path=./src/rs/Cargo.toml\n   ```\n\n## Dependencies\n\n1. [git](http://git-scm.com)\n1. [nodejs](https://nodejs.org)\n1. [postgresql](https://www.postgresql.org/)\n1. [rustup](https://rustup.rs)\n1. [wasm-bindgen-cli](https://rustwasm.github.io/wasm-bindgen/reference/cli.html)\n1. [cwebp](https://developers.google.com/speed/webp/docs/cwebp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserprex%2Fopenetg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserprex%2Fopenetg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserprex%2Fopenetg/lists"}