{"id":15404495,"url":"https://github.com/k1low/serverless-static-hosting-with-basic-auth","last_synced_at":"2025-04-16T20:53:58.789Z","repository":{"id":66825448,"uuid":"116805724","full_name":"k1LoW/serverless-static-hosting-with-basic-auth","owner":"k1LoW","description":"Serverless boilerplate for Static website hosting with Basic authentication","archived":false,"fork":false,"pushed_at":"2019-03-18T11:37:52.000Z","size":10,"stargazers_count":21,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T05:41:34.113Z","etag":null,"topics":["basic-authentication","biolerplate","serverless","static-hosting"],"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/k1LoW.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}},"created_at":"2018-01-09T11:10:15.000Z","updated_at":"2021-02-11T20:42:35.000Z","dependencies_parsed_at":"2023-05-10T15:46:02.667Z","dependency_job_id":null,"html_url":"https://github.com/k1LoW/serverless-static-hosting-with-basic-auth","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fserverless-static-hosting-with-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fserverless-static-hosting-with-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fserverless-static-hosting-with-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fserverless-static-hosting-with-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/serverless-static-hosting-with-basic-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249275777,"owners_count":21242284,"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":["basic-authentication","biolerplate","serverless","static-hosting"],"created_at":"2024-10-01T16:13:11.413Z","updated_at":"2025-04-16T20:53:58.771Z","avatar_url":"https://github.com/k1LoW.png","language":"JavaScript","readme":"# Serverless boilerplate for Static website hosting with Basic authentication [![Build Status](https://travis-ci.org/k1LoW/serverless-static-hosting-with-basic-auth.svg?branch=master)](https://travis-ci.org/k1LoW/serverless-static-hosting-with-basic-auth)\n\n## Architecture\n\n```\n[CloudFront (with Lambda@Edge)] -Restrict Bucket Access-\u003e [S3 Origin Bucket] \u003c-Sync- [Local src/*]\n```\n\n### Using plugin\n\n- [serverless-plugin-cloudfront-lambda-edge](https://github.com/silvermine/serverless-plugin-cloudfront-lambda-edge)\n- [serverless-s3-sync](https://github.com/k1LoW/serverless-s3-sync)\n\n## Usage\n\n### Install boilerplate\n\n```\n$ git clone https://github.com/k1LoW/serverless-static-hosting-with-basic-auth.git ./my-static-page\n```\n\n### Set Basic authentication USERNAME:PASS\n\nSet Basic authentication config ( `handler.js` )\n\n### Deploy stack\n\n```\n$ npm install\n$ AWS_PROFILE=XxxxxXXX WEBSITE_S3_BUCKET_NAME=sls-static-basic npm run deploy\n```\n\n### Synchronize src/* -\u003e Website\n\n```\n$ AWS_PROFILE=XxxxxXXX WEBSITE_S3_BUCKET_NAME=sls-static-basic npm run sync\n```\n\n### Remove stack\n\n```\n$ AWS_PROFILE=XxxxxXXX WEBSITE_S3_BUCKET_NAME=sls-static-basic npm run remove\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fserverless-static-hosting-with-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fserverless-static-hosting-with-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fserverless-static-hosting-with-basic-auth/lists"}