{"id":19069191,"url":"https://github.com/bernardomennndes/serverless-certification-generator","last_synced_at":"2026-05-04T09:34:31.556Z","repository":{"id":221441401,"uuid":"595409398","full_name":"Bernardomennndes/serverless-certification-generator","owner":"Bernardomennndes","description":"Node.js Serverless API | Course Certification Generator and Validator","archived":false,"fork":false,"pushed_at":"2023-02-04T14:11:05.000Z","size":300,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-22T03:41:48.793Z","etag":null,"topics":["aws","dayjs","dynamodb","handlebars","nodejs","serverless","typescript"],"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/Bernardomennndes.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":"2023-01-31T02:30:18.000Z","updated_at":"2023-02-02T16:18:21.000Z","dependencies_parsed_at":"2024-02-08T01:27:32.672Z","dependency_job_id":"3add5760-c1cc-432c-9a03-8af6174cb6ff","html_url":"https://github.com/Bernardomennndes/serverless-certification-generator","commit_stats":null,"previous_names":["bernardomennndes/serverless-certification-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bernardomennndes/serverless-certification-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardomennndes%2Fserverless-certification-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardomennndes%2Fserverless-certification-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardomennndes%2Fserverless-certification-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardomennndes%2Fserverless-certification-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bernardomennndes","download_url":"https://codeload.github.com/Bernardomennndes/serverless-certification-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardomennndes%2Fserverless-certification-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32601609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","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":["aws","dayjs","dynamodb","handlebars","nodejs","serverless","typescript"],"created_at":"2024-11-09T01:13:40.498Z","updated_at":"2026-05-04T09:34:31.540Z","avatar_url":"https://github.com/Bernardomennndes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eNode.js Serverless API - Course Certification Generator and Validator\u003c/h1\u003e\n\nThis project was developed with the goal of structuring an API that could generate a course completion certification with a given student name and grade.\n\nIt has an additional functionality of checking if the id of the certification is valid.\n\n\u003cbr/\u003e\n\u003ch2\u003eLibraries Used\u003c/h2\u003e\n\n#### Core Libraries\n\n- [Serverless](https://www.serverless.com/)\n- [Node.js](https://nodejs.org/en/)\n- [AWS](https://aws.amazon.com/pt/sdk-for-javascript/)\n- [DynamoDB](https://aws.amazon.com/pt/dynamodb/)\n\n#### Utility Libraries\n\n- [Typescript](https://www.typescriptlang.org/)\n- [Handlebars](https://handlebarsjs.com/)\n- [Day.js](https://day.js.org)\n\n\u003cbr/\u003e\n\u003ch2\u003eInstallation Instructions\u003c/h2\u003e\n\nDepending on your preferred package manager, follow the instructions below to deploy your project.\n\n### Using NPM\n\n- Run `npm i` to install the project dependencies\n\n### Using Yarn\n\n- Run `yarn` to install the project dependencies\n  \n\u003cbr /\u003e\n\u003ch2\u003eDeployment Instructions\u003c/h2\u003e\n\n### Local Deploy\n\n\u003e **Requirement**: NodeJS `lts/fermium (v.14.15.0)`. If you're using [nvm](https://github.com/nvm-sh/nvm), run `nvm use` to ensure you're using the same Node version in local and in your lambda's runtime.\n\n\u003e **Requirement**: Set the environment variables `AWS_BUCKET_NAME` and `AWS_BUCKET_URL` in the `.env` file and in the Lambda section.\n\n- Run `yarn dynamodb:install`, `nmp run dynamodb:install` or `serverless dynamodb install` to install the dynamodb offline database in your local machine.\n  \n- Run `yarn dynamodb:start`, `nmp run dynamodb:start` or `serverless dynamodb start` to start the dynamodb offline database in your local machine.\n\n- Run `yarn dev` or `npm run dev` to start the offline application locally.\n\n\u003cbr\u003e\n\n### AWS Deploy\n\n\u003e **Requirement**: Set your AWS configuration keys by running `serverless config credentials --provider aws --key=\u003caccess_key\u003e --secret=\u003csecret_access_key\u003e` on your folder terminal by replacing the `\u003caccess_key\u003e` and `\u003csecret_access_key\u003e` variables with the respective key values of your IAM user.\n\n\u003e **Requirement**: Set the environment variables `AWS_BUCKET_NAME` and `AWS_BUCKET_URL` in the `.env` file and in the Lambda section. Read [this](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-config) article to learn how to configure your environment variables at AWS.\n\n- Run `serverless deploy` to deploy your application to the AWS lambda service.\n\n\u003cbr /\u003e\n\u003ch2\u003eEndpoints Available\u003c/h2\u003e\n\n- `[POST] /dev/generateCertification` - Generates the certification.\n- `[GET] /dev/validateCertification/{id}` - Validates the certification.\n\n\u003cbr /\u003e\n\u003ch2\u003eProject structure\u003c/h2\u003e\n\nThe project code base is mainly located within the `src` folder. This folder is divided in:\n\n- `functions` - containing code base and configuration for the lambda functions\n- `templates` - containing the certification template \n- `utils` - containing shared utility functions and configuration\n\n```\n.\n├── src\n│   ├── functions                        # Lambda configuration and source code folder\n│   │    ├── generateCertification.ts    # `generateCertification` lambda source code\n│   │    └── verifyCertification.ts      # `verifyCertification` lambda source code\n│   │\n│   ├── utils                            # Utility folder\n│   │   └── dynamodbClient.ts            # Database client manager\n│   │\n|   └── templates\n│       └── certification.hbs            # Certification card template\n|       └── selo.png                     # Certification stamp/seal\n|\n├── package.json\n├── serverless.ts                        # Serverless service file\n└── tsconfig.json                        # Typescript compiler configuration\n```\n\n\u003cbr /\u003e\n\u003ch2 align=\"right\"\u003eCertification Preview\u003c/h2\u003e\n\u003cimg src=\"./.github/certification.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernardomennndes%2Fserverless-certification-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernardomennndes%2Fserverless-certification-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernardomennndes%2Fserverless-certification-generator/lists"}