{"id":18438622,"url":"https://github.com/moovweb/image-optimization-talk","last_synced_at":"2025-04-14T13:23:14.642Z","repository":{"id":42243419,"uuid":"197193200","full_name":"moovweb/image-optimization-talk","owner":"moovweb","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-27T08:29:27.000Z","size":7303,"stargazers_count":0,"open_issues_count":27,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T10:44:15.907Z","etag":null,"topics":[],"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/moovweb.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":"2019-07-16T12:50:20.000Z","updated_at":"2019-07-16T13:26:48.000Z","dependencies_parsed_at":"2024-11-06T06:23:34.146Z","dependency_job_id":"38c4b9a4-040e-4fa0-848c-4b7180976f58","html_url":"https://github.com/moovweb/image-optimization-talk","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/moovweb%2Fimage-optimization-talk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moovweb%2Fimage-optimization-talk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moovweb%2Fimage-optimization-talk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moovweb%2Fimage-optimization-talk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moovweb","download_url":"https://codeload.github.com/moovweb/image-optimization-talk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886855,"owners_count":21177756,"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-06T06:20:46.562Z","updated_at":"2025-04-14T13:23:14.611Z","avatar_url":"https://github.com/moovweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Storefront Boilerplate\n\nFor detailed documentation, see the [React Storefront Docs](https://pwa.moovweb.com).\n\n## Setup\n\nFirst, install the dependencies:\n\n```\nnpm install\n```\n\n## Running (Moovweb XDN SDK)\n\n```\nnpm start\n```\n\nThis builds and starts your application on [https://localhost:8080](https://localhost:8080) using the Moovweb XDN SDK.  Once the build is complete, your browser will automatically open and display the application.\n\n## Running (Express)\n\nYou can also run you app using express:\n\n```\nnpm start:express\n```\n\n## Windows\n\nTo run this project on Windows:\n\n```\nyarn start:windows\n```\n\n## Creating a new Project\n\n### Clone the repo into a directory\n\n```\ngit clone git@github.com:moovweb/react-storefront-boilerplate.git \u003cproject-name\u003e\ncd \u003cproject-name\u003e\n```\n\n### Local Config\n\nUpdate the host_map in moov_config-local.json to use the customer's domain name.  Replace `domain.com` in the code below with the customer's actual domain name.  The customer will need to create a DNS entry for the \"dev-origin\" subdomain.\n\n```\n\"host_map\": [\n  \"domain.com =\u003e dev-origin.domain.com\"\n]\n```\n\n### Development Server Config\n\nUpdate the host map in moov_config-dev.json.  Here we typically use dev.domain.com.  **Make sure that the subdomain you use is not already in use by the customer.**\n\n```\n\"host_map\": [\n  \"pwa-dev.domain.com =\u003e dev-origin.domain.com\"\n]\n```\n\n### Production Server Config\n\nUpdate the host map in moov_config-prod.json.  The customer will need to create a DNS entry for the origin subdomain.\n\n```\n\"host_map\": [\n  \"domain.com =\u003e origin.domain.com\"\n]\n```\n\n### Package.json\n\nEdit the name in package.json.  Use `\u003ccustomer\u003e-pwa`.\n\n### Moovweb Console\n\nCreate the development environment in the [Moovweb Console](https://console.moovweb.com):\n\n1. Click \"Create New Project\"\n2. Enter a name and select \"Single Domain\".  We suggest `\u003ccustomer\u003e-pwa-dev`\n3. Select \"Project Settings\"\n4. Select \"Internal Config\"\n5. Set \"Service Level\" to \"Enterprise Production\"\n\n### GitHub\n\nCreate a new repo in [Moovweb Projects](https://github.com/organizations/moovweb-projects/repositories/new) and copy the SSH url.  We suggest naming the repo `\u003ccustomer\u003e-pwa`.\n\nIn the repo settings, under \"Collaborators and Teams\" add \"Engineering Team\" and grant write access.\n\nIn the root of your local clone, run the following to re-initialize the git repo and push it up to GitHub:\n\n```\nrm -rf .git\ngit init\ngit add .\ngit commit -am \"initial commit\"\ngit remote add origin (paste SSH git url from repo)\ngit push -u origin master\n```\n\n### Circle CI\n\nOpen .circleci/config.yml.  Search for \"moov deploy\" and update the command to use the correct environment name:\n\n```\nmoov deploy \u003ccustomer\u003e/\u003ccustomer\u003e-pwa-dev\n```\n\nCommit and push to origin\n\nThe configure the project in [Circle CI - Moovweb Projects](https://circleci.com/gh/moovweb-projects):\n\n1. Click \"Add Projects\"\n2. Find your repo and click \"Set Up Project\"\n3. Edit the project settings and select \"Environment Variables\".\n4. Add your moov console credentials as MOOV_EMAIL and MOOV_PASSWORD.\n5. Select \"Overview\", then \"Start Building\" at the bottom.\n\nLastly, start a build and ensure that it succeeds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoovweb%2Fimage-optimization-talk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoovweb%2Fimage-optimization-talk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoovweb%2Fimage-optimization-talk/lists"}