{"id":19509088,"url":"https://github.com/sustainablecommunitydevelopmenthub/portal","last_synced_at":"2025-02-25T22:43:00.422Z","repository":{"id":87073841,"uuid":"93196728","full_name":"SustainableCommunityDevelopmentHub/portal","owner":"SustainableCommunityDevelopmentHub","description":"Getty Research Portal","archived":false,"fork":false,"pushed_at":"2017-05-31T00:25:14.000Z","size":15280,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-01-08T11:41:13.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/SustainableCommunityDevelopmentHub.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":"2017-06-02T19:17:01.000Z","updated_at":"2019-01-09T20:28:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6e025da-cf13-4563-9fae-144f662d3c33","html_url":"https://github.com/SustainableCommunityDevelopmentHub/portal","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SustainableCommunityDevelopmentHub%2Fportal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SustainableCommunityDevelopmentHub%2Fportal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SustainableCommunityDevelopmentHub%2Fportal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SustainableCommunityDevelopmentHub%2Fportal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SustainableCommunityDevelopmentHub","download_url":"https://codeload.github.com/SustainableCommunityDevelopmentHub/portal/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761096,"owners_count":19853254,"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-10T23:10:59.483Z","updated_at":"2025-02-25T22:43:00.387Z","avatar_url":"https://github.com/SustainableCommunityDevelopmentHub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Getty Research Portal\n=====================\n*******************************\n\n\nRunning the Application\n------------------------\n\n\n1. Make sure you have a docker virtual machine running. Use `docker-machine ls` to check the status of your docker machines. `docker-machine --help` will provide a handy list of all available commands.\n\n2. *In your project directory,* start the portal containers  with `docker-compose up` Also, you can use `docker ps` to see a list of all active containers, and `docker inspect \u003csome-container\u003e` for container configuration information. You may find it helpful to leave a tab open in the terminal just for working in the docker container.\n\n3.  If you are running the application for the first time, you must run `bash init-es.sh` to create an elasticsearch index and upload sample data. Subsequently this should not be necessary.\n\n4. The application should now be running on port 8000. You can now edit code in the project file *on your host machine* with your editor of choice.\n\nIn your host, open your browser to (http://local.portal.dev:8000), or, if you have not updated your `etc/hosts` file, (http://192.168.99.100:8000). Doublecheck that this is the correct IP address of your docker machine. You can do this by typing (in your host) `docker-machine ip \u003cmy-docker-machine-name\u003e`. The default docker machine is named 'default', and the default IP address is as above.\n\n\nEnter a search for \"history\" and click the Search button.\n\n*******************************\n\n\n#Setup (OS X)\n\n1. Make sure Xcode Command Line Tools is installed on your machine. `xcode-select -p` should list the directory where Xcode is located, if it is installed. Running `gcc` will also throw an error if Xcode Command Line Tools is not installed. To simply install the developer tools, enter `xcode-select --install` in the command line and follow instructions. You can also install Xcode (which includes Command Line Tools) through the App store. A walkthrough for installation is\n   [here](http://railsapps.github.io/xcode-command-line-tools.html)\n\n# (Optional, Recommended for Developers) Install node.js\n1. Install node.js: https://nodejs.org/en/ -- suggested version is v4.x (most recent version 4).\n2. Install the following helper node modules globally: [bower](http://bower.io/),  [karma-cli](https://www.npmjs.com/package/karma-cli), [grunt](https://www.npmjs.com/package/grunt]), [npm-check-updates](https://www.npmjs.com/package/npm-check-updates), [dedupe](https://docs.npmjs.com/cli/dedupe), and [jshint](http://jshint.com/install/):\n ````\nnpm install -g bower karma-cli grunt-cli npm-check-updates dedupe jshint\n````\n\n**Note:** `karma-cli` should be installed globally but `karma` should only be installed **locally**.\n\n#Clone this Repo\nIn the directory where you want your project to live, enter `git clone \u003cmy-repo-clone-url-goes-here\u003e`. The clone URL for this repo can be found near the top of this web-page where it says HTTPS. For developers it is recommended to use SSH and set up your SSH key. If you're not sure what to use, use the HTTPS url.\n\n#Install Docker Toolbox and Docker\nThe recommended way to install Docker on OS X is using homebrew cask (or Macports) to install the docker toolbox. If you don't want to use a package manager, [OS X install instructions for Docker Toolbox can be found here](https://www.docker.com/docker-toolbox).\nIf you don't have either one of these, go [here](http://http://brew.sh/) for homebrew install instructions and description.\n\nOnce you have homebrew, update it to most recent:\n        `brew update`\n\nThen use it to install Docker Toolbox:\n        `brew cask install dockertoolbox`\n\n#Setup Docker Machine\n\n1. Create an account on docker hub.\n2. Create a basic docker machine named \"default\" using the virtualbox driver:\n        `docker-machine create --driver virtualbox default`\n\n3. Start the default docker machine:\n        `docker-machine start default`\n\n4. Run `docker-machine env default`. You will see instructions on how to create environment variable for you docker machine.\n\n5. Run the command `eval \"$(docker-machine env default)\"`\n\n6. Add the `EXPORT` commands previously printed out into your `.bash_profile` so the environment variables will be set automatically in the future. If you don't have a `.bash_profile` file, `touch ~/.bash_profile` will create one.\n\n7. You can now run `docker run hello-world` to test that docker is working correctly inside your docker machine.\n\n#Set hostname\n1. Add the following line to your /etc/hosts file:\n       `\u003cip-address-of-my-docker-machine\u003e    local.portal.dev`\n\nYou can run `docker-machine ip default` to find the IP address of the default docker machine. The default IP setting should be `192.168.99.100`.\n\n#Troubleshooting\n\n- Is Elasticsearch running in the docker container? *In the docker container,* run `ps aux | grep elastic` - if elasticsearch is running you should see something like \"/usr/bin/java -Xms256m -Xmx1g -Xss256k -Djava.awt.headless=true\" etc and so forth...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsustainablecommunitydevelopmenthub%2Fportal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsustainablecommunitydevelopmenthub%2Fportal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsustainablecommunitydevelopmenthub%2Fportal/lists"}