Other

项目介绍

blackducksoftware/ohloh-ui 是一个托管在 GitHub 上的开源项目,主要使用 Ruby 编写,采用 Other 许可证,目前获得 130 个 Star、61 次 Fork。

仓库全名
blackducksoftware/ohloh-ui
开源许可证
Other
Star 数
130
Fork 数
61
未关闭 Issue
29

README 摘要

OhlohUI A Ruby on Rails application for the Open Hub platform. 📋 Table of Contents Prerequisites Getting Started Database Setup Running the Application Testing Pull Request Checks Contributing 🔧 Prerequisites Before you begin, ensure you have the following installed: Ruby: 3.1.7 (use rbenv or rvm) Rails: 6.1.7.10 PostgreSQL: Latest stable version System-Specific Requirements macOS Ubuntu/Debian Install Ruby…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ohloh-ui 用什么语言开发?

主要使用 Ruby 编写,采用 Other 许可证,目前有 130 个 Star。

ohloh-ui 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 ohloh-ui 的源码?

可以直接克隆仓库:git clone https://github.com/blackducksoftware/ohloh-ui.git,默认分支为 main;安装与运行步骤见仓库 README。

ohloh-ui 最近还在维护吗?

仓库最近一次更新为 1 天前,当前有 29 个未关闭 Issue;Star 数为 130,可作为社区活跃度的参考。

关于

Web Application for the OpenHub Stack.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
267
价值分
96
活跃状态
活跃

语言占比

BitBake
C++
CSS
CoffeeScript
Dockerfile
Gherkin
HTML
Haml
JavaScript
PHP
PLpgSQL
Puppet
Ruby
Sass
Shell

Release

README

OhlohUI

A Ruby on Rails application for the Open Hub platform.

📋 Table of Contents

🔧 Prerequisites

Before you begin, ensure you have the following installed:

  • Ruby: 3.1.7 (use rbenv or rvm)
  • Rails: 6.1.7.10
  • PostgreSQL: Latest stable version

System-Specific Requirements

macOS
brew install postgresql
brew services start postgresql
Ubuntu/Debian
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib libpq-dev

Install Ruby version manager (rbenv)

brew install rbenv
rbenv install 3.1.7
rbenv global 3.1.7

🚀 Getting Started

1. Clone the Repository

git clone [email protected]:blackducksoftware/ohloh-ui.git
cd ohloh-ui

2. Install Dependencies

gem install bundler
bundle install

💾 Database Setup

1. Configure Environment Variables

Create a file named .env.development in the project root with the following content:

DB_ENCODING=UTF-8
DB_HOST=localhost
DB_NAME=oh_db
DB_USERNAME=fis_user
DB_PASSWORD=fis_password

TEST_DB_HOST=localhost
TEST_DB_NAME=oh_test
TEST_DB_USERNAME=fis_user
TEST_DB_PASSWORD=fis_password

2. Create PostgreSQL User

psql postgres

In PostgreSQL prompt:

CREATE USER fis_user WITH PASSWORD 'fis_password';
ALTER USER fis_user WITH SUPERUSER;

Note: The default DB encoding was set to SQL_ASCII for legacy data compatibility. UTF-8 encoding is recommended for new data.

2. Create and Setup Databases

rails db:create
rake db:structure:load
rake db:migrate

Note: You may see errors about existing relations and constraints. These can be safely ignored.

3. Setup Admin User

Create a default admin user (arguments are optional):

ruby script/setup_default_admin.rb <login> <password> <email>

Default credentials if no arguments provided:

▶️ Running the Application

Start the Rails server:

rails s

Visit http://localhost:3000 to view the application.

🧪 Testing

Unit & Integration Tests

Run the full test suite:

$ rake test

Run a single test file:

$ rake test test/models/account_test.rb

Run a directory of tests:

$ rake test test/models

🔄 Pull Request Checks

Pre Pull Request Checks

The CI pipeline runs the following checks on all pull requests:

rake ci:all_tasks

This includes:

  • rubocop - Ruby style linting
  • bundle audit - Dependency vulnerability checking
  • rake test - Ruby unit tests

Post Pull Request Checks

After all the successful checks, CI pipeline will have success message like All checks has been passed.

🤝 Contributing

  1. Create a feature branch from main
  2. Make your changes
  3. Run rake ci:all_tasks to ensure all checks pass
  4. Submit a pull request

📝 License

See LICENSE file for details.

🔒 Security

For security concerns, please refer to security.md.

评论

暂无评论