{"id":24811636,"url":"https://github.com/baseline-js/baseline-webpage","last_synced_at":"2025-10-13T13:31:36.451Z","repository":{"id":46068007,"uuid":"478344353","full_name":"Baseline-JS/baseline-webpage","owner":"Baseline-JS","description":"Simple React static site deployed to AWS using serverless","archived":false,"fork":false,"pushed_at":"2025-01-05T06:22:13.000Z","size":1049,"stargazers_count":21,"open_issues_count":1,"forks_count":13,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-09-24T03:55:53.368Z","etag":null,"topics":["aws","boilerplate","cloudfront","deployment","jamstack","nodejs","react","s3","serverless","skeleton","starter","starter-template","typescript"],"latest_commit_sha":null,"homepage":"","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/Baseline-JS.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":"2022-04-06T00:22:19.000Z","updated_at":"2025-04-12T15:06:34.000Z","dependencies_parsed_at":"2023-02-08T16:02:02.192Z","dependency_job_id":null,"html_url":"https://github.com/Baseline-JS/baseline-webpage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Baseline-JS/baseline-webpage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseline-JS%2Fbaseline-webpage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseline-JS%2Fbaseline-webpage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseline-JS%2Fbaseline-webpage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseline-JS%2Fbaseline-webpage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Baseline-JS","download_url":"https://codeload.github.com/Baseline-JS/baseline-webpage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseline-JS%2Fbaseline-webpage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015312,"owners_count":26085684,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws","boilerplate","cloudfront","deployment","jamstack","nodejs","react","s3","serverless","skeleton","starter","starter-template","typescript"],"created_at":"2025-01-30T13:15:37.278Z","updated_at":"2025-10-13T13:31:36.123Z","avatar_url":"https://github.com/Baseline-JS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baseline Webpage\n\nA simple React static site that is deployed to AWS using serverless.\n\n![serverless](https://camo.githubusercontent.com/dcd998f0b6567f17873812fa9bcc9767d63c056862c19024ccbfe5ec7cefe2eb/687474703a2f2f7075626c69632e7365727665726c6573732e636f6d2f6261646765732f76332e737667)\n![node](https://img.shields.io/badge/node.js-16.x-brightgreen?style=plastic)\n![platform](https://img.shields.io/badge/platform-AWS-blue?style=plastic)\n![pm](https://img.shields.io/badge/pm-npm-yellow?style=plastic)\n![framework](https://img.shields.io/badge/framework-React-pink?style=plastic)\n![CDN](https://img.shields.io/badge/CDN-Cloudfront-blue?style=plastic)\n![license](https://img.shields.io/badge/license-MIT-brightgreen?style=plastic)\n![types](https://img.shields.io/badge/types-TypeScript-blue?style=plastic)\n\n## Goals\n\n- Deploy quickly with minimal effort\n- Everything you need to start building straight away with production quality\n- Support deployment from local, Bitbucket \u0026 GitHub\n- Deploy and test ideas before you buy that perfect domain name\n- Prod, staging and local environments separated from the start\n\n## Features\n\n- ⚡️ Serverless\n- 💰 Cost friendly - only pay for what you use\n- 🌏 Fast and global CDN with Cloudfront\n- ✨ Automatic cache invalidation (1000 free per month - [check pricing](https://aws.amazon.com/cloudfront/pricing/))\n- 👉 Redirect HTTP to HTTPS\n- 🚀 Ready to use Bitbucket Pipeline and Github Action\n- ⌨️ Deploy from your local machine (optional)\n- 🤝 HTTP2 support\n- 🗜 Gzip and Brotli compression\n- 🏗 Modern tools Typescript, React, Serverless Framework\n- 🔐 HTTPS/TLS support\n- 💻 Team Collaboration - Great for a single developer or a whole team\n- 🥞 Perfect for a Jamstack\n- 🏎 Fast Deployments - deploy changes quicker!\n- ☎️ Minimal configuration required to get started\n- 🛣 DNS with Route53\n- ✅ Free SSL/TLS with [AWS Certificate Manager](https://aws.amazon.com/certificate-manager/pricing/?nc=sn\u0026loc=3) when using Route53\n- 🎬 Test new ideas quickly and single command tear down when you are done, no mess\n- 🔑 Support AWS CLI Profiles - no need to use default for everything!\n\n## Lighthouse Scores\n\nStart with a perfect score!\n\n🎉\n![Lighthouse Performance](https://img.shields.io/badge/performance-100-brightgreen?style=plastic)\n![Lighthouse Accessibility](https://img.shields.io/badge/accessibility-100-brightgreen.svg?style=plastic)\n![Lighthouse Best Practices](https://img.shields.io/badge/best%20practices-100-brightgreen.svg?style=plastic)\n![Lighthouse SEO](https://img.shields.io/badge/SEO-100-brightgreen.svg?style=plastic)\n🎉\n\n## Demo\n\nSee Baseline Webpage in action\n\n[\u003cimg width=\"697\" alt=\"Demo video\" src=\"https://github-production-user-asset-6210df.s3.amazonaws.com/72828539/245375638-4a7666ea-6052-420d-a6ad-fc1157bd6d3d.png\"\u003e](https://youtu.be/9CR89RysSmc)\n\n## Local Requirements\n\n- Node.js 16 [(we suggest using nvm)](https://github.com/nvm-sh/nvm#install--update-script)\n- NPM version 7+ [installing npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)\n- [AWS CLI v2](https://aws.amazon.com/cli) (only required for local deployment)\n\n## Project Setup\n\n1. `npx baseline-webpage@latest my-app` where `my-app` is the name of your app\n2. `cd my-app` and `npm run aws:profile` which will configure AWS CLI with a new profile and is only required for deploying from local (if you have issues please update aws cli)\n\n## Run Locally\n\n1. `npm start`\n\n## Deploying\n\n1. `npm run deploy:staging`\n2. The output from the deploy will show `WebsiteUrl` that the site was deployed to. If you need to find it again you can run `npm run info:staging`\n\n## Deploy a Change\n\n1. `npm run deploy:staging`\n2. Allow some time for the Cloudfront cache invalidation to finish to see changes in browser\n\n## Adding a Domain\n\n- Deploy first\n- Set up a Route53 Hosted zone for the desired domain name\n- Create a _single_ ACM certificate for `*.$DOMAIN_NAME` \u0026 `$DOMAIN_NAME`\n- Add an \"Alternate domain name\" to the Distribution that matches your buckets name\n- Edit Route53 and point the domain with an A record to the Distribution\n\n## Remove Stack\n\nTo destroy the deployed stack so it is no longer on AWS run `npm run remove:staging`.\n\n## Environment Flag\n\nYou can add checks in the code to determine if you are in a deployed or development environment. Development will only be for locally run code. Currently cannot tell the difference between deployed staging and prod.\n\n- `process.env.NODE_ENV === 'production'`\n- `process.env.NODE_ENV === 'development'`\n\n## Pipeline Variables\n\nThe main and prod branches will trigger the action/pipeline to deploy. The stage is determined by the branch name being \"prod\" or not.\n\n### GitHub\n\nCreate two Actions secrets with the AWS account keys you will deploy with:\n\n- AWS_ACCESS_KEY_ID = xxxx\n- AWS_SECRET_ACCESS_KEY = xxxx\n\n### Bitbucket\n\nIf you are using the BitBucket pipeline deployment then you will need to set these pipeline environment variables in BitBucket:\n\n- AWS_ACCESS_KEY_ID = xxxx\n- AWS_SECRET_ACCESS_KEY = xxxx\n- AWS_PROFILE = baseline-webpage\n- REGION = ap-southeast-2\n\nOptionally these can be used if staging and prod are in different accounts or the IAM roles have different access:\n\n- PROD_AWS_ACCOUNT_ACCESS_KEY_ID = xxxx\n- PROD_AWS_ACCOUNT_SECRET_ACCESS_KEY = xxxx\n- NON_AWS_ACCOUNT_ACCESS_KEY_ID = xxxx\n- NON_AWS_ACCOUNT_SECRET_ACCESS_KEY = xxxx\n\n## Baseline\n\nIf you would like to learn more about what we do please visit [Baseline](https://baselinejs.com/)\n\n## License\n\nBaseline Webpage is [MIT licensed](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaseline-js%2Fbaseline-webpage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaseline-js%2Fbaseline-webpage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaseline-js%2Fbaseline-webpage/lists"}