{"id":34837093,"url":"https://github.com/rodrigogs/barracao-digital","last_synced_at":"2025-12-25T16:08:56.060Z","repository":{"id":38769492,"uuid":"249327114","full_name":"rodrigogs/barracao-digital","owner":"rodrigogs","description":"Sistema de gerenciamento de fila virtual para os barracões de atendimento do COVID-19","archived":false,"fork":false,"pushed_at":"2023-01-27T02:15:18.000Z","size":12581,"stargazers_count":9,"open_issues_count":65,"forks_count":1,"subscribers_count":6,"default_branch":"development","last_synced_at":"2024-04-14T11:09:23.088Z","etag":null,"topics":["backend","coronavirus","covid","covid-19","frontend","healthcare","medical","nodejs","pandemic","serverless","serverless-framework","vue"],"latest_commit_sha":null,"homepage":"https://barracaodigital.com","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodrigogs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-23T03:29:30.000Z","updated_at":"2024-01-07T21:27:31.000Z","dependencies_parsed_at":"2023-02-15T04:16:44.369Z","dependency_job_id":null,"html_url":"https://github.com/rodrigogs/barracao-digital","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rodrigogs/barracao-digital","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbarracao-digital","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbarracao-digital/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbarracao-digital/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbarracao-digital/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigogs","download_url":"https://codeload.github.com/rodrigogs/barracao-digital/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbarracao-digital/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28032374,"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","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["backend","coronavirus","covid","covid-19","frontend","healthcare","medical","nodejs","pandemic","serverless","serverless-framework","vue"],"created_at":"2025-12-25T16:07:08.807Z","updated_at":"2025-12-25T16:08:56.054Z","avatar_url":"https://github.com/rodrigogs.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Barracão Digital](https://barracaodigital.com)\nEstruturação rápida de “postos de triagem” virtuais descentralizados para redução de visitas desnecessárias às emergências\n\n# Informações técnicas\n\n### Status\n| Production | Development |\n|:----------:|:-----------:|\n| [![Production Build Status](https://travis-ci.com/rodrigogs/barracao-digital.svg?branch=master)](https://travis-ci.com/rodrigogs/barracao-digital) | [![Development Build Status](https://travis-ci.com/rodrigogs/barracao-digital.svg?branch=development)](https://travis-ci.com/rodrigogs/barracao-digital) |\n\n### Setup\n**Make sure `bash` is available from your terminal**\n```bash\n$ npm install serverless -g\n$ serverless login\n$ npm install\n```\n\n### Deploying a new stage\n*DANGER* you must know exactly what you are doing here!\n- Log into your [Serverless Dashboard](https://dashboard.serverless.com/) and create a new app reflecting serverless.yml \"service\" field\n- Deploy the frontend, it's needed to create the CloudFront distribution\n```bash\n$ NODE_ENV={stage_name} npm run deploy:frontend\n```\n- [Create a distribution](https://console.aws.amazon.com/cloudfront/home?region=sa-east-1#create-distribution) pointing to the frontend bucket\n  - Don't forget to create a custom error response for 404 and other errors\n- Create a Route53 Hosted Zone with the api host\n- Create the APIGateway domain\n```bash\n$ NODE_ENV={stage_name} sls create_domain\n```\n- Verify if the serverless.yml `provider.deploymentBucket.name` bucket exists. Create if needed.\n- Deploy the service\n```bash\n$ serverless deploy\n```\n\n### Deploy\n#### Frontend \u0026 backend\n```bash\n$ NODE_ENV=development|production npm run deploy\n```\n\n#### Frontend\n```bash\n$ NODE_ENV=development|production npm run deploy:frontend\n```\n\n#### Backend\n```bash\n$ NODE_ENV=development|production npm run deploy:backend\n```\n\n### Troubleshooting\n#### Got `User is not authorized to access this resource` when using the API\n* Open the [AWS Console](https://console.aws.amazon.com/console), open the [API Gateway](https://console.aws.amazon.com/apigateway) service and find your deployed service\n* Navigate to `Authorizers` tab and you shall see the `authorizer`\n* Click `Edit`, check `Authorization Caching` and click `Save`\n    ![api-gateway-workaround](https://github.com/rodrigogs/barracao-digital/blob/master/media/api-gateway-workaround.png)\n* Click `Edit` again, uncheck `Authorization Caching` and click `Save`\n* Redeploy the application\n* Yes, it sucks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fbarracao-digital","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigogs%2Fbarracao-digital","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fbarracao-digital/lists"}