{"id":18248183,"url":"https://github.com/serverless-components/tencent-ocr","last_synced_at":"2025-04-08T19:51:11.853Z","repository":{"id":97839447,"uuid":"276088321","full_name":"serverless-components/tencent-ocr","owner":"serverless-components","description":"Serverless OCR Application developed by Serverless Framework.","archived":false,"fork":false,"pushed_at":"2020-06-30T12:23:00.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-14T15:36:34.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverless-components.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-30T12:10:13.000Z","updated_at":"2021-11-15T10:01:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b42489d-32f7-4426-9019-46c58d1fdbcc","html_url":"https://github.com/serverless-components/tencent-ocr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-ocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-ocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-ocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-ocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless-components","download_url":"https://codeload.github.com/serverless-components/tencent-ocr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247918600,"owners_count":21018040,"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":"2024-11-05T09:36:10.472Z","updated_at":"2025-04-08T19:51:11.825Z","avatar_url":"https://github.com/serverless-components.png","language":"JavaScript","readme":"# Serverless OCR\n\nServerless OCR Application developed by Serverless Framework.\n\n### Prepare\n\nBefore all below steps, you should install\n[Serverless Framework](https://www.github.com/serverless/serverless) globally:\n\n```bash\n$ npm i serverless -g\n```\n\n### Init Project\n\nSeverless cli is very convenient, it can download templates in any github\nproject which should contain `serverless.yml` file.\n\n```bash\n$ serverless init -t ocr-app\n```\n\n### Bootstrap\n\nCopy `.env.example` file to `.env` in project root:\n\nAdd the access keys of a\n[Tencent CAM Role](https://console.cloud.tencent.com/cam/capi) with\n`AdministratorAccess` in the `.env` file, like below:\n\n```dotenv\n# .env\nTENCENT_APP_ID=xxx\nTENCENT_SECRET_ID=xxx\nTENCENT_SECRET_KEY=xxx\n\n# region of bucket\nREGION=ap-guangzhou\n# bucket name, using to store upload pictures\nBUCKET=ocr-images\n```\n\nInstall the NPM dependencies:\n\n```bash\n$ npm run bootstrap\n```\n\n### Setup Bucket\n\nYou should create a bucket for storing user's uploaded images. By the way, this\nbucket must config `CORS` headers, refer to:\nhttps://cloud.tencent.com/document/product/436/13318\n\nBelow is a example for allow all `CORS` headers:\n\n\u003ccenter\u003e\n\u003cimg src=\"https://static-yugasun-com-1251556596.file.myqcloud.com/sls/cos-cors-setup.png\" alt=\"CORS config\" width=\"300\"\u003e\n\u003c/center\u003e\n\n### Development\n\nStart server:\n\n```bash\n$ cd server \u0026\u0026 npm run start\n```\n\nStart frontend:\n\n```bash\n$ cd frontend \u0026\u0026 npm run start\n```\n\nThen you can access frontend page by http://localhost:3000.\n\n### Support commands\n\nDeploy:\n\n```bash\n$ npm run deploy\n```\n\nGet deploy info:\n\n```bash\n$ npm run info\n```\n\nRemove:\n\n```bash\n$ npm run remove\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless-components%2Ftencent-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-ocr/lists"}