{"id":23496014,"url":"https://github.com/scottyrichardson/mossly.io-frontend","last_synced_at":"2026-04-14T19:32:55.740Z","repository":{"id":269582218,"uuid":"899710551","full_name":"scottyrichardson/mossly.io-frontend","owner":"scottyrichardson","description":"Mossly.io frontend website files. Deploys via workflow to AWS AppRunner (via ECR image) sitting behind a Cloudfront distribution.","archived":false,"fork":false,"pushed_at":"2024-12-30T15:19:50.000Z","size":2050,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-17T20:13:20.360Z","etag":null,"topics":["apprunner","aws","cloudfront","css","ecr","frontend","gulp","html","mossly","nodejs"],"latest_commit_sha":null,"homepage":"https://mossly.io","language":"CSS","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/scottyrichardson.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,"zenodo":null}},"created_at":"2024-12-06T21:01:38.000Z","updated_at":"2024-12-30T15:19:06.000Z","dependencies_parsed_at":"2025-04-22T12:08:24.075Z","dependency_job_id":"5ab68ff5-1461-4793-8496-f499fb046859","html_url":"https://github.com/scottyrichardson/mossly.io-frontend","commit_stats":null,"previous_names":["scottyrichardson/mossly.io-frontend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottyrichardson/mossly.io-frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottyrichardson%2Fmossly.io-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottyrichardson%2Fmossly.io-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottyrichardson%2Fmossly.io-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottyrichardson%2Fmossly.io-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottyrichardson","download_url":"https://codeload.github.com/scottyrichardson/mossly.io-frontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottyrichardson%2Fmossly.io-frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31812968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apprunner","aws","cloudfront","css","ecr","frontend","gulp","html","mossly","nodejs"],"created_at":"2024-12-25T04:09:55.960Z","updated_at":"2026-04-14T19:32:55.721Z","avatar_url":"https://github.com/scottyrichardson.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mossly.io Frontend\n\nThis project uses NodeJS and gulp to build a deployable artifact located in `dist`. The artifact gets deployed in a Docker image to an AWS ECR registry. It is then deployed to App Runner that sits behind a CloudFront distribution.\n\n**Build and deployment is handled automatically by CI/CD actions in this repo**. The process to manually deploy is detailed below.\n\n## Prerequisites\n\n- Node.js\n- Docker (for containerization)\n- AWS CLI (for deployment)\n\n## NodeJS\n\nInstall required packages:\n\n```bash\n# Install Gulp\nnpm install -g gulp npm-check-updates\n\n# Install project dependencies:\nnpm install\n```\n\n### Building the Project\n\n```bash\ngulp\n# or\ngulp prod\n```\n\n### Updating Dependencies\n\nCheck and update dependencies:\n\n```bash\n# Update package.json versions\nncu -u\n\n# Install updated packages\nnpm install\n```\n\n## Docker\n\nBuild and tag image:\n\n```bash\ndocker build -t mossly.io .\n```\n\nRun container locally:\n\n```bash\ndocker run -p 8080:80 mossly.io\n```\n\nAccess locally at `http://localhost:8080/`\n\n## AWS\n\n### CLI\n\n1. Create access key in AWS Portal:\n\n   - Login to AWS Portal\n   - Navigate to profile → Security Credentials\n   - Create new access key under \"Access Keys\" section\n\n2. Configure AWS CLI with access key:\n\n```bash\naws configure\n```\n\n### ECR (Elastic Container Registry)\n\n1. Get AWS account ID:\n\n```bash\naws sts get-caller-identity --query Account --output text\n```\n\n2. Authenticate with ECR:\n\n```bash\naws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin \u003cyour-aws-account-id\u003e.dkr.ecr.us-east-1.amazonaws.com\n```\n\n3. Build and push image:\n\n```bash\n# Build local image\ndocker build -t mossly.io .\n\n# Tag for ECR\ndocker tag mossly.io:latest \u003cyour-aws-account-id\u003e.dkr.ecr.us-east-1.amazonaws.com/mossly.io/frontend:latest\n\n# Push to ECR\ndocker push \u003cyour-aws-account-id\u003e.dkr.ecr.us-east-1.amazonaws.com/mossly.io/frontend:latest\n```\n\n### App Runner\n\nDeploy new image to App Runner:\n\n```bash\naws apprunner start-deployment \\\n            --service-arn \u003capp-runner-service-arn\u003e \\\n            --region \u003capp-runner-region\u003e\n```\n\n### CloudFront\n\nInvalidate CloudFront cache:\n\n```bash\naws cloudfront create-invalidation --distribution-id \u003cdistribution-id\u003e --paths \"/*\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottyrichardson%2Fmossly.io-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottyrichardson%2Fmossly.io-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottyrichardson%2Fmossly.io-frontend/lists"}