{"id":27953588,"url":"https://github.com/boostio/issuehunt-balancer","last_synced_at":"2025-05-07T17:13:57.801Z","repository":{"id":80421091,"uuid":"133330122","full_name":"BoostIO/Issuehunt-balancer","owner":"BoostIO","description":"Balance DB server","archived":false,"fork":false,"pushed_at":"2018-06-19T20:43:04.000Z","size":416,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T17:13:53.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/BoostIO.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":"2018-05-14T08:36:24.000Z","updated_at":"2018-09-25T18:10:30.000Z","dependencies_parsed_at":"2023-06-07T18:01:02.631Z","dependency_job_id":null,"html_url":"https://github.com/BoostIO/Issuehunt-balancer","commit_stats":{"total_commits":115,"total_committers":2,"mean_commits":57.5,"dds":"0.34782608695652173","last_synced_commit":"9550f18bf707140b2197a14d20033e9db5d70868"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoostIO%2FIssuehunt-balancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoostIO%2FIssuehunt-balancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoostIO%2FIssuehunt-balancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoostIO%2FIssuehunt-balancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BoostIO","download_url":"https://codeload.github.com/BoostIO/Issuehunt-balancer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252922335,"owners_count":21825639,"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":"2025-05-07T17:13:57.049Z","updated_at":"2025-05-07T17:13:57.795Z","avatar_url":"https://github.com/BoostIO.png","language":"TypeScript","readme":"# Balancer\n\n## Development\n\n### Requirements\n\n- Postgresql\n- Node.js\n\n### Prepare env vars\n\nCreate `.env` file.\n\nExample:\n\n```\nNODE_ENV=development\nPORT=3002\nBASE_URL=http://localhost:3002\n\nDB_TYPE=postgres\nDB_HOST=localhost\nDB_PORT=5432\nDB_USERNAME=root\nDB_PASSWORD=\nDB_NAME=balancer\n```\n\n### Migrate\n\n```\nnpm run migration:run\n```\n\n### Run server\n\n```\nnpm run dev\n```\n\n## Test\n\n### Prepare env vars\n\nCreate `test.env` file just like `.env`.\n\n### Migrate\n\n```\nNODE_ENV=test npm run migration:run\n```\n\n### Run test\n\n```\nnpm test\n```\n\n## Deployment\n\n### Prepare env vars\n\nCreate `production.env` just like `.env`.\n\n\u003e You should exclude `PORT`. It will be provided by now.sh\n\n### Migrate\n\n```\nNODE_ENV=production npm run migration:run\n```\n\n### Prepare now.json\n\nExample:\n\n```\n{\n  \"engines\": {\n    \"node\": \"8.11.1\"\n  },\n  \"dotenv\": \"production.env\",\n  \"alias\": \"DOMAIN_SHOULD_BE_HERE\"\n}\n```\n\n### Deploy\n\n```\nnow \u0026\u0026 now alias\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostio%2Fissuehunt-balancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboostio%2Fissuehunt-balancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostio%2Fissuehunt-balancer/lists"}