{"id":20471164,"url":"https://github.com/apotox/firebase-sdk-with-netlify-functions","last_synced_at":"2025-10-18T02:11:14.653Z","repository":{"id":39537623,"uuid":"188443622","full_name":"apotox/firebase-sdk-with-netlify-functions","owner":"apotox","description":"use Firebase Admin with Netlify lambda functions","archived":false,"fork":false,"pushed_at":"2022-12-10T15:24:20.000Z","size":581,"stargazers_count":8,"open_issues_count":7,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T02:11:44.584Z","etag":null,"topics":["firebase","netlify","serverless"],"latest_commit_sha":null,"homepage":"https://safi-eddine-posts.herokuapp.com/2019-05-24_use-Firebase-Admin-with-Netlify-lambda-functions-483d3b390e3a.html","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/apotox.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}},"created_at":"2019-05-24T15:14:26.000Z","updated_at":"2023-08-17T21:49:43.000Z","dependencies_parsed_at":"2023-01-26T08:31:29.171Z","dependency_job_id":null,"html_url":"https://github.com/apotox/firebase-sdk-with-netlify-functions","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/apotox%2Ffirebase-sdk-with-netlify-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotox%2Ffirebase-sdk-with-netlify-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotox%2Ffirebase-sdk-with-netlify-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotox%2Ffirebase-sdk-with-netlify-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apotox","download_url":"https://codeload.github.com/apotox/firebase-sdk-with-netlify-functions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703194,"owners_count":21148117,"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":["firebase","netlify","serverless"],"created_at":"2024-11-15T14:15:15.342Z","updated_at":"2025-10-18T02:11:14.560Z","avatar_url":"https://github.com/apotox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firebase-sdk-with-netlify-functions\nuse Firebase Admin with Netlify lambda functions\n\n\non this project I have created two parts, the first is the front-end page (static content) and the second is the backend which is a lambda function calls firebase rest api using firebaseSDK library\n\n\n## webpack.server.js\nthis is the most important part, bundling a Nodejs Function for Netlify function or AWS Lambda with Webpack,One of the major challenges when working with serverless functions is bundling all your node_modules into one zip file, but in my case when I tried to bundle firebase SDK with my lambda function I faced a lot of errors and missed requirements.., so decided to move the big external dependencies into a new package.json file inside “lambda” folder with the help of generate-json-webpack-plugin webpack plugin. and I edited the package.json build script ,\nso after the “yarn build: server” I change the directory by the command “cd dist/server/” and then “yarn install”,\nthis will create a new node_modules into the lambda folder and netlify will zip it using zip-it-and-ship-it to AWS lambda function.\n\n[full story](https://safi-eddine-posts.herokuapp.com/2019-05-24_use-Firebase-Admin-with-Netlify-lambda-functions-483d3b390e3a.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapotox%2Ffirebase-sdk-with-netlify-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapotox%2Ffirebase-sdk-with-netlify-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapotox%2Ffirebase-sdk-with-netlify-functions/lists"}