├── api ├── .dockerignore ├── .env.example ├── .github │ ├── erd.svg │ └── workflows │ │ └── ci.yml ├── .gitignore ├── Dockerfile ├── README.md ├── api.http ├── argo.yaml ├── deploy │ ├── .helmignore │ ├── Chart.yaml │ ├── templates │ │ ├── NOTES.txt │ │ ├── _helpers.tpl │ │ ├── configmap.yaml │ │ ├── deployment.yaml │ │ ├── hpa.yaml │ │ ├── ingress.yaml │ │ ├── secret.yaml │ │ ├── service.yaml │ │ ├── serviceaccount.yaml │ │ └── tests │ │ │ └── test-connection.yaml │ └── values.yaml ├── docker-compose.yml ├── k8s-old │ ├── deployment.yaml │ └── service.yaml ├── k8s │ ├── configmap.yaml │ ├── deployment.yaml │ ├── secret.yaml │ └── service.yaml ├── package-lock.json ├── package.json ├── prisma │ ├── migrations │ │ └── 20240401194747_setup │ │ │ └── migration.sql │ ├── schema.prisma │ └── seed.ts ├── repository.yaml ├── src │ ├── error-handler.ts │ ├── lib │ │ └── prisma.ts │ ├── routes │ │ ├── _errors │ │ │ └── bad-request.ts │ │ ├── check-in.ts │ │ ├── create-event.ts │ │ ├── get-attendee-badge.ts │ │ ├── get-event-attendees.ts │ │ ├── get-event.ts │ │ └── register-for-event.ts │ ├── server.ts │ └── utils │ │ └── generate-slug.ts └── tsconfig.json └── terraform ├── main.tf ├── providers.tf └── variables.tf /api/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/.dockerignore -------------------------------------------------------------------------------- /api/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/.env.example -------------------------------------------------------------------------------- /api/.github/erd.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/.github/erd.svg -------------------------------------------------------------------------------- /api/.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/.github/workflows/ci.yml -------------------------------------------------------------------------------- /api/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/.gitignore -------------------------------------------------------------------------------- /api/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/Dockerfile -------------------------------------------------------------------------------- /api/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/README.md -------------------------------------------------------------------------------- /api/api.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/api.http -------------------------------------------------------------------------------- /api/argo.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/argo.yaml -------------------------------------------------------------------------------- /api/deploy/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/.helmignore -------------------------------------------------------------------------------- /api/deploy/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/Chart.yaml -------------------------------------------------------------------------------- /api/deploy/templates/NOTES.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/NOTES.txt -------------------------------------------------------------------------------- /api/deploy/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/_helpers.tpl -------------------------------------------------------------------------------- /api/deploy/templates/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/configmap.yaml -------------------------------------------------------------------------------- /api/deploy/templates/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/deployment.yaml -------------------------------------------------------------------------------- /api/deploy/templates/hpa.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/hpa.yaml -------------------------------------------------------------------------------- /api/deploy/templates/ingress.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/ingress.yaml -------------------------------------------------------------------------------- /api/deploy/templates/secret.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/secret.yaml -------------------------------------------------------------------------------- /api/deploy/templates/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/service.yaml -------------------------------------------------------------------------------- /api/deploy/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/serviceaccount.yaml -------------------------------------------------------------------------------- /api/deploy/templates/tests/test-connection.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/templates/tests/test-connection.yaml -------------------------------------------------------------------------------- /api/deploy/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/deploy/values.yaml -------------------------------------------------------------------------------- /api/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/docker-compose.yml -------------------------------------------------------------------------------- /api/k8s-old/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/k8s-old/deployment.yaml -------------------------------------------------------------------------------- /api/k8s-old/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/k8s-old/service.yaml -------------------------------------------------------------------------------- /api/k8s/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/k8s/configmap.yaml -------------------------------------------------------------------------------- /api/k8s/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/k8s/deployment.yaml -------------------------------------------------------------------------------- /api/k8s/secret.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/k8s/secret.yaml -------------------------------------------------------------------------------- /api/k8s/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/k8s/service.yaml -------------------------------------------------------------------------------- /api/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/package-lock.json -------------------------------------------------------------------------------- /api/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/package.json -------------------------------------------------------------------------------- /api/prisma/migrations/20240401194747_setup/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/prisma/migrations/20240401194747_setup/migration.sql -------------------------------------------------------------------------------- /api/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/prisma/schema.prisma -------------------------------------------------------------------------------- /api/prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/prisma/seed.ts -------------------------------------------------------------------------------- /api/repository.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/repository.yaml -------------------------------------------------------------------------------- /api/src/error-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/error-handler.ts -------------------------------------------------------------------------------- /api/src/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/lib/prisma.ts -------------------------------------------------------------------------------- /api/src/routes/_errors/bad-request.ts: -------------------------------------------------------------------------------- 1 | export class BadRequest extends Error {} -------------------------------------------------------------------------------- /api/src/routes/check-in.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/routes/check-in.ts -------------------------------------------------------------------------------- /api/src/routes/create-event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/routes/create-event.ts -------------------------------------------------------------------------------- /api/src/routes/get-attendee-badge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/routes/get-attendee-badge.ts -------------------------------------------------------------------------------- /api/src/routes/get-event-attendees.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/routes/get-event-attendees.ts -------------------------------------------------------------------------------- /api/src/routes/get-event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/routes/get-event.ts -------------------------------------------------------------------------------- /api/src/routes/register-for-event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/routes/register-for-event.ts -------------------------------------------------------------------------------- /api/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/server.ts -------------------------------------------------------------------------------- /api/src/utils/generate-slug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/src/utils/generate-slug.ts -------------------------------------------------------------------------------- /api/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/api/tsconfig.json -------------------------------------------------------------------------------- /terraform/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/terraform/main.tf -------------------------------------------------------------------------------- /terraform/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/terraform/providers.tf -------------------------------------------------------------------------------- /terraform/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/nlw-unite-devops/HEAD/terraform/variables.tf --------------------------------------------------------------------------------