{"id":21448095,"url":"https://github.com/romdim/imagekit-nodejs-firebase","last_synced_at":"2025-03-17T02:09:29.948Z","repository":{"id":149953409,"uuid":"289140702","full_name":"romdim/imagekit-nodejs-firebase","owner":"romdim","description":"A serverless ImageKit NodeJs app for returning authentication parameters to client-side app","archived":false,"fork":false,"pushed_at":"2020-09-04T14:08:29.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T11:45:35.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/romdim.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":"2020-08-21T00:38:15.000Z","updated_at":"2020-09-04T14:08:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"547065de-c64c-47fe-89ae-1c1be61a56ab","html_url":"https://github.com/romdim/imagekit-nodejs-firebase","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/romdim%2Fimagekit-nodejs-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romdim%2Fimagekit-nodejs-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romdim%2Fimagekit-nodejs-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romdim%2Fimagekit-nodejs-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romdim","download_url":"https://codeload.github.com/romdim/imagekit-nodejs-firebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960665,"owners_count":20375104,"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-23T03:14:01.020Z","updated_at":"2025-03-17T02:09:29.930Z","avatar_url":"https://github.com/romdim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageKit node.js Firebase serverless function\n\nThis is a serverless function to return authentication parameters to a client-side app only if the UID of the Firebase is correct.\n\n## Setup\n\n1. Create an ImageKit account\n2. Gather the following info:\n\nThe ID, private and public key come from ImageKit\nOrigin URL is the CORS allowed url of the client app that will use the function. When ran locally this could be something like `http://localhost`.\nUID (just a unique ID) is what your client-side app will include when it calls this function as a parameter.\n\n### Run locally\n\n1. Create a `.runtimeconfig.json` that looks like `.runtimeconfig.json.example`. If you already deployed it to Firebase, then you can speed things up by running: `firebase functions:config:get \u003e .runtimeconfig.json`\n2. `docker build -t fia . \u0026\u0026 docker run -it fia` (or `npm run serve`)\n\n### Deploy\n\n1. Create a Firebase account with a project initialized and Blaze pricing plan (no need to worry, pretty sweet free tier, just create a budget to notify you if you ever reach 1$ of spending)\n2. Replace your project's name in `.firebaserc`\n3. Install globally the Firebase CLI: `npm install -g firebase-tools`\n4. Run `firebase functions:config:set imagekit.imagekit_id=\"\" imagekit.imagekit_private_key=\"\" imagekit.imagekit_public_key=\"\" imagekit.origin_url=\"\" imagekit.uid=\"\"` with your arguments in place. They should look like the provided `.runtimeconfig.json.example`\n5. Make sure you have the correct `origin_url` in your functions config.\n6. Run `npm run deploy` to deploy to Firebase Functions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromdim%2Fimagekit-nodejs-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromdim%2Fimagekit-nodejs-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromdim%2Fimagekit-nodejs-firebase/lists"}