{"id":22283077,"url":"https://github.com/bitcodr/re-test","last_synced_at":"2025-06-19T08:35:41.383Z","repository":{"id":200069799,"uuid":"703596639","full_name":"bitcodr/re-test","owner":"bitcodr","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-15T20:01:47.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T19:52:03.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bitcodr.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":"2023-10-11T14:36:15.000Z","updated_at":"2023-10-14T17:24:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"aac4c09b-d042-4b45-8ea4-9a90cc8925f3","html_url":"https://github.com/bitcodr/re-test","commit_stats":null,"previous_names":["bitcodr/re-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitcodr/re-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcodr%2Fre-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcodr%2Fre-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcodr%2Fre-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcodr%2Fre-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcodr","download_url":"https://codeload.github.com/bitcodr/re-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcodr%2Fre-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260716508,"owners_count":23051471,"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":[],"created_at":"2024-12-03T16:38:33.278Z","updated_at":"2025-06-19T08:35:36.363Z","avatar_url":"https://github.com/bitcodr.png","language":"Go","readme":"# Re-Test\n\n## API Documentation to Test Online\n\n#### Update Packs\n#### API Endpoint\n- **API:** [https://stormy-stream-88610-e6c05773897c.herokuapp.com/packets/update](https://stormy-stream-88610-e6c05773897c.herokuapp.com/packets/update)\n\n#### Request\n```json\n{\n    \"packets\": [250, 500, 1000, 2000, 5000]\n}\n```\n\n#### Response\n```json\n[\n    250,\n    500,\n    1000,\n    2000,\n    5000\n]\n```\n\n#### Calculate Order Packs\n\n#### API Endpoint\n- **API:** [https://stormy-stream-88610-e6c05773897c.herokuapp.com/orders/calculate](https://stormy-stream-88610-e6c05773897c.herokuapp.com/orders/calculate)\n\n#### Request\n```json\n{\n    \"items\": 251\n}\n```\n\n#### Response\n```json\n{\n    \"item\": 251,\n    \"packets\": {\n        \"500\": 1\n    }\n}\n```\n\n---\n## To test on a Local machine, follow the steps as below\n## Prerequisites\n\nBefore running any of the Makefile targets, make sure you have the following prerequisites:\n\n- Go (Golang) installed on your system.\n- Docker and Docker Compose (if you intend to use Docker-related targets).\n- The project's directory structure and necessary configuration files are set up as expected.\n\n## Available Makefile Targets\n\n### help\n\nThis target displays a list of available Makefile targets and their descriptions.\n\n```bash\nmake help\n```\n\n### release\n\nThis target builds a production binary file of application. It uses the `create-env` target to ensure the necessary environment files are present.\n\n```bash\nmake release\n```\n\n### build\n\nThis target builds a development binary file of application. Like `release`, it also relies on the `create-env` target.\n\n```bash\nmake build\n```\n\n### run\n\nThis target runs application in development mode, automatically reloading when code changes are detected. It depends on `create-env` and uses `CompileDaemon` for automatic reloading.\n\n```bash\nmake run\n```\n\n### create-env\n\nThis target creates environment configuration files, such as `.env` and `config.yml`. It ensures that these files exist.\n\n```bash\nmake create-env\n```\n\n### mod\n\nThis target retrieves dependency packages using Go Modules (`go mod tidy`).\n\n```bash\nmake mod\n```\n\n### test\n\nThis target runs unit tests for application and provides test coverage information. It relies on `tparse` for parsing test results.\n\n```bash\nmake test\n```\n\n### race\n\nThis target runs the data race detector on your application to identify data race conditions. Like `test`, it uses `tparse` for parsing test results.\n\n```bash\nmake race\n```\n\n### coverage\n\nThis target checks the code coverage of your tests and generates a coverage report.\n\n```bash\nmake coverage\n```\n\n### lint\n\nThis target performs code linting on your project to identify potential issues. It uses `golangci-lint` for linting.\n\n```bash\nmake lint\n```\n\n### docs\n\nThis target generates and updates documentation using the Swagger tool (`swag`). It parses dependencies for documentation.\n\n```bash\nmake docs\n```\n\n### docker-build\n\nThis target builds Docker containers for your application using Docker Compose. Ensure you have Docker and Docker Compose installed.\n\n```bash\nmake docker-build\n```\n\n### docker-up\n\nThis target starts your application using Docker Compose in detached mode. It automatically reloads your application within the Docker container.\n\n```bash\nmake docker-up\n```\n\n### docker-down\n\nThis target stops the Docker containers created with Docker Compose.\n\n```bash\nmake docker-down\n```\n\n### docker-log\n\nThis target prints the logs of Docker containers. It can be useful for debugging when your application is running inside Docker containers.\n\n```bash\nmake docker-log\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcodr%2Fre-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcodr%2Fre-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcodr%2Fre-test/lists"}