{"id":31970627,"url":"https://github.com/hubspot/cms-react-boilerplate","last_synced_at":"2025-10-14T19:17:09.730Z","repository":{"id":38822921,"uuid":"263381480","full_name":"HubSpot/cms-react-boilerplate","owner":"HubSpot","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-20T13:32:30.000Z","size":210,"stargazers_count":65,"open_issues_count":20,"forks_count":33,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-14T05:24:04.565Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HubSpot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-12T15:48:41.000Z","updated_at":"2024-04-14T05:24:04.566Z","dependencies_parsed_at":"2023-02-08T07:30:46.278Z","dependency_job_id":null,"html_url":"https://github.com/HubSpot/cms-react-boilerplate","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/HubSpot/cms-react-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fcms-react-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fcms-react-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fcms-react-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fcms-react-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HubSpot","download_url":"https://codeload.github.com/HubSpot/cms-react-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fcms-react-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020651,"owners_count":26086895,"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-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2025-10-14T19:17:08.618Z","updated_at":"2025-10-14T19:17:09.719Z","avatar_url":"https://github.com/HubSpot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cms-react-boilerplate [beta]\n\nBoilerplate [React](https://reactjs.org/) project for creating apps using modules on the HubSpot CMS.\n\n## *NOTE:*\n\nThe `cms-react-boilerplate` legacy repository is a starting place for building and running a SPA (single page application) style React App on a HubSpot page. The React build itself is not directly connected to HubSpot.\n\nRecently HubSpot has released \"CMS JS Building Blocks\" for general availability. Read documentation and [view examples here](https://github.com/HubSpot/cms-js-building-block-examples). The \"building blocks\" feature directly integrates React on the server and the client with HubSpot and enables building HubSpot modules in React. Further, it builds on the [HubSpot Developer Projects](https://developers.hubspot.com/docs/platform/create-a-project) system which provides CI/CD build and deploy functionality.\n\n## Getting Started\n\nFor more information on local development tools, see [Local Development Tooling: Getting Started](https://designers.hubspot.com/docs/tools/local-development)\n\n### Configuration\n\n#### Set up HubSpot CMS CLI ([`@hubspot/cli`](https://www.npmjs.com/package/@hubspot/cli))\n- A config file named `hubspot.config.yml` will also be needed.  The config can be at the project level or higher up in the directory tree.\n- Be sure to set a `defaultPortal` in your `hubspot.config.yml` to which you'd like the built app files to sync.\n\n### Install\n- Run `npm install` or `yarn install` to install needed dependencies.\n\n### Running\n- Run `npm start` or `yarn start` to automatically upload your project to `defaultPortal`.\n- Create a page from default theme, or any drag-and-drop (`dnd_area`) enabled template in your portal, and add the `app (label: React app boilerplate)` module.\n\n### package.json scripts\n- `start` : Builds project with webpack, uploads to your `defaultPortal` specified in `hubspot.config.yml` and watches for changes via [`@hubspot/webpack-cms-plugins/HubSpotAutoUploadPlugin`](https://www.npmjs.com/package/@hubspot/webpack-cms-plugins).\n- `build` : Clears `/dist` contents and builds project into `/dist`.\n- `deploy` : Clears `/dist` contents, builds project into `/dist`, and uploads to via [`@hubspot/cli`](https://www.npmjs.com/package/@hubspot/cli).\n- `lint` : Lints CSS, JS, and JSON files via `eslint` ([documentation](https://eslint.org/docs/user-guide/configuring)) and checks for formatting via `prettier`([documentation](https://prettier.io/docs/en/configuration.html)) in `src`.\n  - For configs, see `prettier.config.js` and `eslintrc.js`.\n- `prettier:write` : Formats JS and JSON files in `src`.\n  - For configs, see `prettier.config.js`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspot%2Fcms-react-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubspot%2Fcms-react-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspot%2Fcms-react-boilerplate/lists"}