{"id":20554897,"url":"https://github.com/v1tbrah/practicum-gophermart","last_synced_at":"2026-05-05T01:34:58.670Z","repository":{"id":62867327,"uuid":"561762286","full_name":"v1tbrah/practicum-gophermart","owner":"v1tbrah","description":"🎓Learning project. Implements API gophermart.","archived":false,"fork":false,"pushed_at":"2022-12-12T09:59:26.000Z","size":7677,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T17:56:41.649Z","etag":null,"topics":["gin","jwt","postgres","rest-api","resty"],"latest_commit_sha":null,"homepage":"","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/v1tbrah.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}},"created_at":"2022-11-04T12:41:49.000Z","updated_at":"2023-12-14T17:56:03.000Z","dependencies_parsed_at":"2023-01-27T17:31:44.061Z","dependency_job_id":null,"html_url":"https://github.com/v1tbrah/practicum-gophermart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"yandex-praktikum/go-musthave-diploma-tpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v1tbrah%2Fpracticum-gophermart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v1tbrah%2Fpracticum-gophermart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v1tbrah%2Fpracticum-gophermart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v1tbrah%2Fpracticum-gophermart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v1tbrah","download_url":"https://codeload.github.com/v1tbrah/practicum-gophermart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242159873,"owners_count":20081564,"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":["gin","jwt","postgres","rest-api","resty"],"created_at":"2024-11-16T03:14:18.480Z","updated_at":"2026-05-05T01:34:53.641Z","avatar_url":"https://github.com/v1tbrah.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# practicum-gophermart\n\n## Installation\n\n`git clone https://github.com/v1tbrah/practicum-gophermart`\n\n## Getting started\n\n### Prepairing\n\n* You need PostgreSQL installed. You can check it: `psql --version`. If it's not installed, visit https://www.postgresql.org/download/\n* You need PostgreSQL database \"gophermart\". If there isn't, do the following:\n    ```\n    sudo -u postgres psql\n    CREATE DATABASE gophermart;\n    ```\n### Options\nThe following options are set by default:\n```\napi server run address: `:8081`\naccrual system run address: `:8080`\nlog level: `info`\norder status update interval: `5s`\n```\n* flag options:\n```\n   -a string\n      api server run address\n   -d string\n      database connection string\n   -r string\n      api accrual run address\n   -u duration\n      order status update interval\n   -l string\n      log level \n```\nFor example: `go run cmd/gophermart/main.go -d=\"host=localhost port=5432 user=postgres password=12345678 dbname=gophermart sslmode=disable\"`\n* env options can check in internal/parse\n      \n### Note!\n\n* You definitely need to configure the db connection string\n\n### Starting\n\n* Open first terminal. Go to work project directory. Run binary \"accrual loyalty\" system. For example:\n   ```\n   cd ~/go/src/practicum-gophermart\n   ./cmd/accrual/accrual_linux_amd64\n   ```\n* Open second terminal. Go to project working directory. Run \"gophermart\" app. For example:\n   ```\n   cd ~/go/src/practicum-gophermart\n   go run cmd/gophermart/main.go -d=\"host=localhost port=5432 user=postgres password=12345678 dbname=gophermart sslmode=disable\"\n   ```\n\n## Обновление шаблона тестов\n\nЧтобы иметь возможность получать обновления автотестов и других частей шаблона, выполните команду:\n\n```\ngit remote add -m master template https://github.com/yandex-praktikum/go-musthave-diploma-tpl.git\n```\n\nДля обновления кода автотестов выполните команду:\n\n```\ngit fetch template \u0026\u0026 git checkout template/master .github\n```\n\nЗатем добавьте полученные изменения в свой репозиторий.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv1tbrah%2Fpracticum-gophermart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv1tbrah%2Fpracticum-gophermart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv1tbrah%2Fpracticum-gophermart/lists"}