{"id":19815249,"url":"https://github.com/dev-connor/reverse1999-damage-calculator","last_synced_at":"2026-03-05T10:31:50.515Z","repository":{"id":221550217,"uuid":"735929122","full_name":"dev-connor/Reverse1999-damage-calculator","owner":"dev-connor","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-30T04:26:33.000Z","size":660,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T19:27:08.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/dev-connor.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}},"created_at":"2023-12-26T13:40:45.000Z","updated_at":"2024-02-08T15:03:53.000Z","dependencies_parsed_at":"2024-02-08T17:28:59.655Z","dependency_job_id":"9e484985-6c71-43f1-8ab7-cb8536c8fcef","html_url":"https://github.com/dev-connor/Reverse1999-damage-calculator","commit_stats":null,"previous_names":["dev-connor/reverse1999-damage-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-connor/Reverse1999-damage-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-connor%2FReverse1999-damage-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-connor%2FReverse1999-damage-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-connor%2FReverse1999-damage-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-connor%2FReverse1999-damage-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-connor","download_url":"https://codeload.github.com/dev-connor/Reverse1999-damage-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-connor%2FReverse1999-damage-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30119427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-12T10:05:17.690Z","updated_at":"2026-03-05T10:31:50.492Z","avatar_url":"https://github.com/dev-connor.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reverse1999_damage_calculator\n\nThis project was generated using fastapi_template.\n\n## Poetry\n\nThis project uses poetry. It's a modern dependency management\ntool.\n\nTo run the project use this set of commands:\n\n```bash\npoetry install\npoetry run python -m reverse1999_damage_calculator\n```\n\nThis will start the server on the configured host.\n\nYou can find swagger documentation at `/api/docs`.\n\nYou can read more about poetry here: https://python-poetry.org/\n\n## Docker\n\nYou can start the project with docker using this command:\n\n```bash\ndocker-compose -f deploy/docker-compose.yml --project-directory . up --build\n```\n\nIf you want to develop in docker with autoreload add `-f deploy/docker-compose.dev.yml` to your docker command.\nLike this:\n\n```bash\ndocker-compose -f deploy/docker-compose.yml -f deploy/docker-compose.dev.yml --project-directory . up --build\n```\n\nThis command exposes the web application on port 8000, mounts current directory and enables autoreload.\n\nBut you have to rebuild image every time you modify `poetry.lock` or `pyproject.toml` with this command:\n\n```bash\ndocker-compose -f deploy/docker-compose.yml --project-directory . build\n```\n\n## Project structure\n\n```bash\n$ tree \"reverse1999_damage_calculator\"\nreverse1999_damage_calculator\n├── conftest.py  # Fixtures for all tests.\n├── __main__.py  # Startup script. Starts uvicorn.\n├── services  # Package for different external services such as rabbit or redis etc.\n├── settings.py  # Main configuration settings for project.\n├── templates  # Static content.\n├── tests  # Tests for project.\n└── web  # Package contains web server. Handlers, startup config.\n    ├── api  # Package with all handlers.\n    │   └── router.py  # Main router.\n    ├── application.py  # FastAPI application configuration.\n    └── lifetime.py  # Contains actions to perform on startup and shutdown.\n```\n\n## Configuration\n\nThis application can be configured with environment variables.\n\nYou can create `.env` file in the root directory and place all\nenvironment variables here.\n\nAll environment variables should start with \"REVERSE1999_DAMAGE_CALCULATOR_\" prefix.\n\nFor example if you see in your \"reverse1999_damage_calculator/settings.py\" a variable named like\n`random_parameter`, you should provide the \"REVERSE1999_DAMAGE_CALCULATOR_RANDOM_PARAMETER\"\nvariable to configure the value. This behaviour can be changed by overriding `env_prefix` property\nin `reverse1999_damage_calculator.settings.Settings.Config`.\n\nAn example of .env file:\n```bash\nREVERSE1999_DAMAGE_CALCULATOR_RELOAD=\"True\"\nREVERSE1999_DAMAGE_CALCULATOR_PORT=\"8000\"\nREVERSE1999_DAMAGE_CALCULATOR_ENVIRONMENT=\"dev\"\n```\n\nYou can read more about BaseSettings class here: https://pydantic-docs.helpmanual.io/usage/settings/\n\n## Pre-commit\n\nTo install pre-commit simply run inside the shell:\n```bash\npre-commit install\n```\n\npre-commit is very useful to check your code before publishing it.\nIt's configured using .pre-commit-config.yaml file.\n\nBy default it runs:\n* black (formats your code);\n* mypy (validates types);\n* isort (sorts imports in all files);\n* flake8 (spots possible bugs);\n\n\nYou can read more about pre-commit here: https://pre-commit.com/\n\n\n## Running tests\n\nIf you want to run it in docker, simply run:\n\n```bash\ndocker-compose -f deploy/docker-compose.yml -f deploy/docker-compose.dev.yml --project-directory . run --build --rm api pytest -vv .\ndocker-compose -f deploy/docker-compose.yml -f deploy/docker-compose.dev.yml --project-directory . down\n```\n\nFor running tests on your local machine.\n\n\n2. Run the pytest.\n```bash\npytest -vv .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-connor%2Freverse1999-damage-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-connor%2Freverse1999-damage-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-connor%2Freverse1999-damage-calculator/lists"}