{"action":"created","issue":{"url":"https://api.github.com/repos/NCEAS/metacatui/issues/734","repository_url":"https://api.github.com/repos/NCEAS/metacatui","labels_url":"https://api.github.com/repos/NCEAS/metacatui/issues/734/labels{/name}","comments_url":"https://api.github.com/repos/NCEAS/metacatui/issues/734/comments","events_url":"https://api.github.com/repos/NCEAS/metacatui/issues/734/events","html_url":"https://github.com/NCEAS/metacatui/issues/734","id":347551570,"node_id":"MDU6SXNzdWUzNDc1NTE1NzA=","number":734,"title":"Should I add these KNB dev specific install instructions somewhere?","user":{"login":"jkibele","id":4845845,"node_id":"MDQ6VXNlcjQ4NDU4NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/4845845?v=4","gravatar_id":"","url":"https://api.github.com/users/jkibele","html_url":"https://github.com/jkibele","followers_url":"https://api.github.com/users/jkibele/followers","following_url":"https://api.github.com/users/jkibele/following{/other_user}","gists_url":"https://api.github.com/users/jkibele/gists{/gist_id}","starred_url":"https://api.github.com/users/jkibele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkibele/subscriptions","organizations_url":"https://api.github.com/users/jkibele/orgs","repos_url":"https://api.github.com/users/jkibele/repos","events_url":"https://api.github.com/users/jkibele/events{/privacy}","received_events_url":"https://api.github.com/users/jkibele/received_events","type":"User","site_admin":false},"labels":[{"id":612423972,"node_id":"MDU6TGFiZWw2MTI0MjM5NzI=","url":"https://api.github.com/repos/NCEAS/metacatui/labels/task","name":"task","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-08-03T22:18:30Z","updated_at":"2018-12-05T19:41:12Z","closed_at":null,"author_association":"COLLABORATOR","body":"I'm preparing to contribute to the data portal project so I had to get a local version of metacatui working. With help from @ThomasThelen and @laurenwalker I set it up a bit differently from the readme installation instructions to suit my purposes. I kept track of what I was doing (notes included below). Seems like it could be useful to include these notes somewhere. ...but it might clutter the readme to add them there. Should I put them somewhere as a markdown document? \r\n\r\n# Installing KNB Themed Metacatui with Test Server\r\nI am going to install metacatui and link it to an existing test server so I can work on metacatui development tasks. I'm working on OS X and these instructions are specific to working with the KNB themes.\r\n\r\n1. Clone metacatui: `git clone https://github.com/NCEAS/metacatui.git`  **Note**: Don't clone the repo into a directory inside of your `Documents` directory. That directory only has permissions for the owner, so apache won't be able to serve from there. You'll get a 403 error.\r\n2. `git fetch --all`\r\n3. `git checkout the-feature-branch-you-want` (`feature-project-pages` in my case).\r\n4. Edit `metacatui/src/index.html`:\r\n\t- make `data-theme=\"knb\"`\r\n\t- make `data-metacat-context=\"knb\"`\r\n\t- change `data-map-key` to your api key (optional)\r\n5. Configure Apache to serve files from this location by opening `/etc/apache2/httpd.conf` and changing the `DocumentRoot` to your repository path. (`/Users/jkibele/Repos/metacatui` for me). \r\n6. Start Apache with `sudo apachectl start` (`restart` if you make changes, `stop` when not in use)\r\n7. Changes to `metacatui/src/js/themes/knb/AppModel.js`:\r\n\t- set `d1CNBaseURL` to `https://cn-stage-2.test.dataone.org/`.\r\n\t- set `baseUrl` to `\"https://dev.nceas.ucsb.edu\"`"},"comment":{"url":"https://api.github.com/repos/NCEAS/metacatui/issues/comments/444617746","html_url":"https://github.com/NCEAS/metacatui/issues/734#issuecomment-444617746","issue_url":"https://api.github.com/repos/NCEAS/metacatui/issues/734","id":444617746,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDYxNzc0Ng==","user":{"login":"jkibele","id":4845845,"node_id":"MDQ6VXNlcjQ4NDU4NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/4845845?v=4","gravatar_id":"","url":"https://api.github.com/users/jkibele","html_url":"https://github.com/jkibele","followers_url":"https://api.github.com/users/jkibele/followers","following_url":"https://api.github.com/users/jkibele/following{/other_user}","gists_url":"https://api.github.com/users/jkibele/gists{/gist_id}","starred_url":"https://api.github.com/users/jkibele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkibele/subscriptions","organizations_url":"https://api.github.com/users/jkibele/orgs","repos_url":"https://api.github.com/users/jkibele/repos","events_url":"https://api.github.com/users/jkibele/events{/privacy}","received_events_url":"https://api.github.com/users/jkibele/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T19:41:12Z","updated_at":"2018-12-05T19:41:12Z","author_association":"COLLABORATOR","body":"Okay, I got it working finally. I'll list the whole setup so we don't have to wade through everything above.\r\n\r\n# Setting up MetacatUI with live-server:\r\n1. Edit `metacatui/src/index.html`:\r\n\t- make `data-theme=\"knb\"`\r\n\t- make `data-metacat-context=\"knb\"`\r\n\t- change `data-map-key` to your api key (optional)\r\n        - change `src=\"loader.js?v=2.3.2\"` to `src=\"/loader.js?v=2.3.2\"`\r\n2. Edit `metacatui/src/loader.js`:\r\n        - change `MetacatUI.root` so that `MetacatUI.root = \"/\"`\r\n3. Changes to `metacatui/src/js/themes/knb/AppModel.js`:\r\n\t- set `d1CNBaseURL` to `https://cn-stage-2.test.dataone.org/`.\r\n\t- set `baseUrl` to `\"https://dev.nceas.ucsb.edu\"`\r\n\r\n## live-server settings:\r\n1. set the live-server root to `/src`\r\n2. set the entry file to `/index.html`\r\n\r\nfor the [VS Code live-server extension](https://github.com/ritwickdey/vscode-live-server), the settings JSON looks like this:\r\n\r\n```\r\n\"liveServer.settings.file\": \"/index.html\",\r\n\"liveServer.settings.root\": \"/src\"\r\n```\r\n\r\nWhen this is all done, you can access the SASAP project at `http://localhost:5500/projects/SASAP` (or `127.0.0.1` instead of `localhost` if you're set up that way).\r\n\r\n"}}
{"actor":{"display_login":"jkibele"}}