https://github.com/parameter1/cox-matthews-associates-websites
https://github.com/parameter1/cox-matthews-associates-websites
basecms-websites hacktoberfest
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/parameter1/cox-matthews-associates-websites
- Owner: parameter1
- License: mit
- Created: 2021-06-10T01:21:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2026-02-10T17:18:19.000Z (4 months ago)
- Last Synced: 2026-02-10T20:37:49.881Z (4 months ago)
- Topics: basecms-websites, hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 3.98 MB
- Stars: 0
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BaseCMS Websites for Cox, Matthews and Associates, Inc
This monorepo contains the codebase for websites managed by Cox, Matthews and Associates, Inc. All sites within this repository utilize the [@parameter1/base-cms](https://github.com/parameter1/base-cms) packages, most notably the `marko-web` and `web-cli`.
#### Copy Method
If you wish to use an existing site as a starting point, begin by copying the site directory (recursively) to the new site name:
```bash
cp -R sites/sitetocopy sites/mynewsite
```
Next, update the following files:
```diff
# /docker-compose.yml
# Be sure to increment ports to unused values
+ my-new-site:
+ <<: *node
+ <<: *site-cmd
+ working_dir: /root/sites/mynewsite
+ environment:
+ <<: *env
+ <<: *env-clustername-staging
+ PORT: 80
+ EXPOSED_PORT: 9711
+ LIVERELOAD_PORT: 19711
+ TENANT_KEY: mynewsite_key
+ CDN_IMAGE_HOSTNAME: img.mynewsite.com
+ CDN_ASSET_HOSTNAME: cdn.mynewsite.com
+ ports:
+ - "9711:80"
+ - "19711:19711"
```
```diff
# /travis.yml
+ - stage: deploy
+ name: My New Site
+ script: deploy/index.js mynewsite clustername
+ install: skip
```
```diff
# /sites/mynewsite/package.json
- "name": "@base-cms-websites/sitetocopy",
+ "name": "@base-cms-websites/mynewsite",
- "author": "John Doe ",
+ "author": "Jack Smith ",
- "repository": "https://github.com/base-cms-websites/your-repository/tree/master/sites/sitetocopy",
+ "repository": "https://github.com/base-cms-websites/your-repository/tree/master/sites/mynewsite",
```
```diff
# /sites/mynewsite/config/core.js
- siteName: 'Site to Copy',
+ siteName: 'My New Site',
```
```diff
# /sites/mynewsite/config/gam.js
- const config = new GAMConfiguration('###########', { basePath: 'OLD' });
+ const config = new GAMConfiguration('###########', { basePath: 'NEW' });
# Add/Remove setAliasAdUnits values as needed
```
```diff
# /sites/mynewsite/config/gcse.js
- const config = new GCSEConfiguration('#####################:aaaaaaaaaaa');
+ const config = new GCSEConfiguration('#####################:bbbbbbbbbbb');
```
```diff
# /sites/mynewsite/config/native-x.js
# Add/Remove setAliasPlacements values as needed
```
```diff
# /sites/mynewsite/config/navigation.js
# Update values as needed
```
```diff
# /sites/mynewsite/config/site.js
# Update values as needed
```
```diff
# /sites/mynewsite/server/styles/index.scss
# Update values as needed
```
```diff
# /sites/mynewsite/server/public/robots.txt
+ Disallow: /
- Sitemap: https://www.sitetocopy.com/sitemap.xml
+ Sitemap: https://www.mynewsite.com/sitemap.xml
- Sitemap: https://www.sitetocopy.com/sitemap-google-news.xml
+ Sitemap: https://www.mynewsite.com/sitemap-google-news.xml
```
```diff
# /sites/mynewsite/server/public
# Replace all icon files
```
When copying sites, ensure that unused components, templates, and routes are not copied inadvertently.