{"id":25715147,"url":"https://github.com/mscrnt/top-heroes-calc","last_synced_at":"2026-07-20T22:30:17.745Z","repository":{"id":262947488,"uuid":"888865146","full_name":"mscrnt/Top-Heroes-Calc","owner":"mscrnt","description":"Shard Calculator for mobile game Top Heroes","archived":false,"fork":false,"pushed_at":"2024-12-14T04:40:08.000Z","size":14999,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-14T05:23:01.110Z","etag":null,"topics":["calculator","game","mobile","tool","topheroes"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mscrnt.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":"2024-11-15T06:42:24.000Z","updated_at":"2024-11-27T17:00:17.000Z","dependencies_parsed_at":"2024-11-15T07:31:05.890Z","dependency_job_id":"5f96812f-30ab-416c-bc51-429f3c231912","html_url":"https://github.com/mscrnt/Top-Heroes-Calc","commit_stats":null,"previous_names":["mscrnt/top-heroes-calc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscrnt%2FTop-Heroes-Calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscrnt%2FTop-Heroes-Calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscrnt%2FTop-Heroes-Calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscrnt%2FTop-Heroes-Calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mscrnt","download_url":"https://codeload.github.com/mscrnt/Top-Heroes-Calc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240679163,"owners_count":19839991,"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":["calculator","game","mobile","tool","topheroes"],"created_at":"2025-02-25T13:43:18.124Z","updated_at":"2026-07-20T22:30:17.685Z","avatar_url":"https://github.com/mscrnt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Top Heroes Calculator\n\nTop Heroes Calculator is a web-based application for calculating hero shard requirements for various hero levels and types. The app provides an interactive interface to track progress and calculate remaining shards needed.\n\n## Features\n\n- Interactive star chart for hero progression\n- Dynamic shard calculations based on hero type and level\n- Responsive design with mobile and desktop support\n- Lightweight and containerized using Docker\n\n## Tech Stack\n\n- **Frontend**: HTML, CSS, JavaScript\n- **Backend**: PHP\n- **Web Server**: Nginx\n- **Containerization**: Docker\n\n## Folder Structure\n\n```\n.\n├── README.md              # Project documentation\n├── docker-compose.yml     # Docker Compose configuration\n├── php/                   # PHP application files\n│   ├── index.php          # Entry point for the application\n│   ├── templates/         # PHP templates\n│   │   └── main.php       # Main template file\n│   ├── static/            # Static assets\n│       ├── css/           # CSS files\n│       └── app.js         # JavaScript file\n└── nginx/\n    ├── default.conf       # Nginx configuration\n    └── nginx.conf         # Nginx global configuration\n```\n\n## Setup and Installation\n\n### Prerequisites\n\n- Docker and Docker Compose installed on your system.\n- A domain name configured to point to your server.\n\n### Steps to Run\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/yourusername/top-heroes-calculator.git\n   cd top-heroes-calculator\n   ```\n\n2. **Build and run the Docker containers:**\n   ```bash\n   docker compose up --build\n   ```\n\n3. **Access the application:**\n   - If running locally: [http://localhost](http://localhost)\n   - If deployed: Use your configured domain, e.g., `https://topheroes.net-freaks.com`.\n\n\n## Docker Configuration\n\n### Docker Compose File\n\n```yaml\nversion: '3'\n\nservices:\n  app:\n    build:\n      context: .\n      dockerfile: php/Dockerfile\n    container_name: top-heroes-app\n    restart: always\n    ports:\n      - \"80:80\"\n    networks:\n      - app-network\n\nnetworks:\n  app-network:\n    driver: bridge\n```\n\n### Dockerfile\n\n```dockerfile\n# Use a base image that includes both PHP-FPM and NGINX\nFROM php:7.4-fpm-alpine\n\n# Install NGINX\nRUN apk add --no-cache nginx\n\n# Set the working directory\nWORKDIR /var/www/html\n\n# Copy only the contents of the php folder into /var/www/html\nCOPY ./php /var/www/html\n\n# Ensure correct ownership and permissions\nRUN chown -R www-data:www-data /var/www/html \\\n    \u0026\u0026 chmod -R 755 /var/www/html\n\n# Create directories for NGINX logs\nRUN mkdir -p /var/log/nginx \\\n    \u0026\u0026 touch /var/log/nginx/error.log \\\n    \u0026\u0026 touch /var/log/nginx/access.log \\\n    \u0026\u0026 chown -R www-data:www-data /var/log/nginx \\\n    \u0026\u0026 chmod -R 755 /var/log/nginx\n\n# Copy NGINX configuration\nCOPY ./nginx/nginx.conf /etc/nginx/nginx.conf\nCOPY ./nginx/default.conf /etc/nginx/conf.d/default.conf\n\n# Expose port 80\nEXPOSE 80\n\n# Start PHP-FPM and NGINX when the container starts\nCMD [\"sh\", \"-c\", \"php-fpm -D \u0026\u0026 nginx -g 'daemon off;'\"]\n```\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscrnt%2Ftop-heroes-calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmscrnt%2Ftop-heroes-calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscrnt%2Ftop-heroes-calc/lists"}