{"id":16720988,"url":"https://github.com/yoavniran/cloudinary-upload-signing","last_synced_at":"2025-03-15T12:23:01.287Z","repository":{"id":43803941,"uuid":"125333922","full_name":"yoavniran/cloudinary-upload-signing","owner":"yoavniran","description":"nodejs example of creating a signature for cloudinary client uploads","archived":false,"fork":false,"pushed_at":"2023-04-23T19:17:04.000Z","size":29,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T02:44:18.094Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoavniran.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,"publiccode":null,"codemeta":null}},"created_at":"2018-03-15T08:14:38.000Z","updated_at":"2022-09-13T08:03:42.000Z","dependencies_parsed_at":"2024-11-21T08:41:48.989Z","dependency_job_id":"7d7262e9-cb64-424c-a3aa-c963a022d6cd","html_url":"https://github.com/yoavniran/cloudinary-upload-signing","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/yoavniran%2Fcloudinary-upload-signing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Fcloudinary-upload-signing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Fcloudinary-upload-signing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Fcloudinary-upload-signing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoavniran","download_url":"https://codeload.github.com/yoavniran/cloudinary-upload-signing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243727105,"owners_count":20337946,"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-10-12T22:27:48.447Z","updated_at":"2025-03-15T12:23:01.261Z","avatar_url":"https://github.com/yoavniran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudinary Signed Upload Helper\n\nThe small server included in this repo can be used to test the creation of a signature for [signed uploads](https://cloudinary.com/documentation/upload_images#creating_api_authentication_signatures).\nIt supplies two endpoints for use with the [Upload Widget](https://cloudinary.com/documentation/upload_widget): _upload_signature_ and _prepare_upload_params_.\n\n## Installation\n\n* clone this repo to your local machine\n* make sure you have nodejs installed (and preferably [yarn](https://yarnpkg.com/lang/en/docs/install/) too).\n* after cloning run *yarn* or *npm i* at the root of your cloned repo\n\n## Running\n\nsimply run: \n\n\u003e yarn start\n\nRunning this app will make a nodejs server run over a specified port (default: 9991) which you can determine. \nOnce running you can make an HTTP request to the following:\n\n```\n\thttp://localhost:9991/sign?param1=aaa\u0026param2=bbbb\n\t\n\tor\n\t\n\thttp://localhost:9991/prepare?param1=aaa\u0026param2=bbbb\n\t\n```\n\nThe first time you run the app it will prompt you to enter your cloud's key and secret which are needed to create the signature, as well as the port to run on.\n\nThe details you pass that first time will be saved locally for the next runs.\n\nIf you'd like to change one of these settings after the first time, run the app with: _yarn start -c_ which will show the prompts again.\n\n### Arguments\n\nThe app supports the following arguments:\n\n```\n  config:  --config or -c   \t- Use to show configuration prompts\n  example: --example or -e   \t- Prints client-side examples to the console\n  port:    --port or -p   \t    - The port to run this app on (default: 9991)\n  key:     --key or -k   \t    - The Cloudinary cloud API key\n  secret:  --secret or -s   \t- The Cloudinary cloud API secret\n  help:    --help or -?   \t    - Show this help screen\n  \n```\n\nfor exmaple run:\n\n```\n\nyarn start -k \"my_cloud_key\" -s \"my_cloud_secret\"\n```\n\n\u003e note: if you're on an old (pre v1.0.0) version of yarn or when using _npm run start_ you need to use -- before the parameters. like this:\n\n```\n\nnpm run start -- -k \"my_cloud_key\" -s \"my_cloud_secret\" \n```\n\nto change the key and secret to use for the signature without showing the prompts.\n \n## Code Examples\n\nRunning the app with: _yarn start -e_ will print out javascript examples on how to use *sign* and *prepare* with the upload widget.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoavniran%2Fcloudinary-upload-signing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoavniran%2Fcloudinary-upload-signing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoavniran%2Fcloudinary-upload-signing/lists"}