If you don't know what this application is intended for, you probably shouldn't be here. However, this stuff really isn't a security risk so go ahead and waste your time going through it.
- Pull/Clone current repository to your local computer
- Use Command Line to go to this directory on your computer
- Run
yarn
to setup your local environment- If you don't have the
yarn
command available to you, install node & yarn globally on your computer. I recommend- Installing brew.sh
- Run
brew install yarn
- If you don't have the
- Run
yarn dev-server
to setup local server- You can run dev-server on a different port using
webpack-dev-server --port {port}
- You can run dev-server on a different port using
- Go to http://localhost:8080/ and develop locally
- Setup Local Dev (above)
- Ensure AncestryVPN is disconnected
- Start Charles
- If first time setting up, do the following
- Go to Tools > Map Remote
- Check "Enable Map Remote"
- Click "Add" and set
- Map From: https://www.ancestrycdn.com/tao/mvtstyles.css
- Map To: http://localhost:8080/dist/styles.css (change port if needed)
- Click "Add" and set
- Map From: https://www.ancestrycdn.com/tao/mvtbundle.js
- Map To: http://localhost:8080/dist/bundle.js (change port if needed)
- If first time setting up, do the following
- Load the following links directly in browser (change port if needed).1
- Go to one of the following links and see the magic.2
Footnotes
-
Since the local dev server isn't doing a full compile and is loading from memory, the above direct links force the browser to create the file and place it in memory long enough for Charles to pick up the mapping. From time to time you may need to do a force refresh of the page link. ↩
-
Use the settings display that shows at the top by default to ensure you're seeing what you would expect. You can hide settings on page load by adding
hidesettings
to the query string in the url. ↩