{"id":13586901,"url":"https://github.com/blackducksoftware/ohloh-ui","last_synced_at":"2025-04-05T12:05:24.620Z","repository":{"id":23467397,"uuid":"26831678","full_name":"blackducksoftware/ohloh-ui","owner":"blackducksoftware","description":"Web Application for the OpenHub Stack. ","archived":false,"fork":false,"pushed_at":"2024-10-29T10:12:21.000Z","size":23861,"stargazers_count":106,"open_issues_count":14,"forks_count":52,"subscribers_count":18,"default_branch":"main","last_synced_at":"2024-10-29T12:14:53.695Z","etag":null,"topics":["analysis","database","ohloh","oss","ror","ruby","ruby-on-rails","ui"],"latest_commit_sha":null,"homepage":"https://www.openhub.net","language":"Ruby","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/blackducksoftware.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2014-11-18T21:49:55.000Z","updated_at":"2024-10-10T10:26:25.000Z","dependencies_parsed_at":"2023-01-14T13:30:32.842Z","dependency_job_id":"3cb4ea3a-c753-452a-9399-aae99f4b1a0c","html_url":"https://github.com/blackducksoftware/ohloh-ui","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackducksoftware%2Fohloh-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackducksoftware%2Fohloh-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackducksoftware%2Fohloh-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackducksoftware%2Fohloh-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackducksoftware","download_url":"https://codeload.github.com/blackducksoftware/ohloh-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332603,"owners_count":20921853,"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":["analysis","database","ohloh","oss","ror","ruby","ruby-on-rails","ui"],"created_at":"2024-08-01T15:05:53.543Z","updated_at":"2025-04-05T12:05:24.602Z","avatar_url":"https://github.com/blackducksoftware.png","language":"Ruby","readme":"OhlohUI\n=======\n\nDependencies:\n----------------\n\n* OhlohUI uses the ruby version 2.5.3. Please install ruby '\u003e 2.5'.\n* OhlohUI uses the postgresql database. Please install postgresql and create a new user on it.\n\nGetting Started:\n----------------\n\n```\n$ git clone git@github.com:blackducksoftware/ohloh-ui.git\n$ cd ohloh-ui\n$ gem install bundler\n$ bundle install\n```\n\nThe OhlohUI data is split between two databases in production. The development setup needs to reflect the same.\nThe database names are configured in a file specific to each environment. For development, create a file **env.development**, with the following contents.\n\n```\nDB_ENCODING = 'UTF-8'\n\nDB_HOST = localhost\nDB_NAME =\nDB_USERNAME =\nDB_PASSWORD =\n```\n\nThe default DB encoding was set to SQL_ASCII to support data encoded by older ruby. For new data, the UTF-8 encoding should work fine. The *_USERNAME and *_PASSWORD entries need to reflect the user created in postgresql. The *DB_NAME entries should be new database names. These will be created during our setup.\n\n```\n$ rake db:create\n$ rake db:structure:load\n$ rake db:second_base:structure:load\n```\n\nThis might throw a bunch of errors about relations and constraints already existing. Please ignore them and proceed.\n\nSetup a default admin user. The arguments are optional. By default a user with the login **admin_user**, password **admin_password** and email **admin@example.com** will be created.\n\n```\n$ ruby script/setup_default_admin.rb \u003clogin\u003e \u003cpasssword\u003e \u003cemail\u003e\n```\n\n```\n$ rails s\n```\n\nVisit **localhost:3000** to checkout the site.\n\nTests:\n--------------------\n\nAdd the following to the **.env.development** file. Fill in the blank values appropriately. Modify **.env.test** to reflect the values that were added here.\n\n```\nTEST_DB_HOST = localhost\nTEST_DB_NAME =\nTEST_DB_USERNAME =\nTEST_DB_PASSWORD =\n```\n\nThen run the following:\n\n```\n$ rake db:test:prepare\n$ rake test\n```\n\nIntegration Tests:\n--------------------\n\nThe following packages need to be installed to make the feature specs work:\n\n#### Mac OSX\n\n```sh\n$ brew install brew-cask\n$ brew cask install google-chrome\n$ brew install chromedriver\n```\n\n#### Ubuntu 18.04\n\n```sh\n$ sudo apt-get install chromium-browser\n$ sudo apt-get install chromium-chromedriver\n$ sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver\n```\n\n### Recording/fixing VCR cassettes for Fisbot API:\n\nDefine an alias for vcr.localhost.org in `/etc/hosts`:\n```sh\n127.0.0.1 vcrlocalhost.org\n```\n\nStart the fisbot server(test environment) at localhost:4004.\nManually clean the fisbot tables after each recording.\n\nPull Request Builder:\n--------------------\n\nThe OhlohUI CI uses the following task to verify PR compatibility.\n\n```\n$ rake ci:all_tasks\n```\n\nThis runs:\n* rubocop\n* haml-lint\n* brakeman\n* bundle audit\n* teaspoon\n* rake test\n* spinach\n","funding_links":[],"categories":["Ruby","database"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackducksoftware%2Fohloh-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackducksoftware%2Fohloh-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackducksoftware%2Fohloh-ui/lists"}