• Stars
    star
    529
  • Rank 80,598 (Top 2 %)
  • Language
    Ruby
  • License
    Other
  • Created almost 15 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A web frontend for Git repositories

Ginatra

Build Status Code Climate Gem Version License

Ginatra is a simple web-based git repository browser built on Ruby Sinatra.

[ website | screenshots | demo ]

Features

  • Easy installation
  • Multiple repository support
  • Multiple branch/tag support
  • Commit history, diff, patch
  • Feeds in Atom format
  • Syntax highlighting
  • Repository stats
  • Smart HTTP support
  • and more

Installation

There are 2 ways to install Ginatra: as a packaged Ruby gem or as a Sinatra app.
It's recommended to install it as a ruby gem, unless you know what you're doing.

Ginatra gem

Run the following command to install Ginatra from RubyGems:

gem install ginatra -v 4.1.0

Create config file (see Configuration section in README).

Start the Ginatra server:

ginatra run

By default Ginatra will run on localhost:9797

Ginatra app

Run the following commands to install Ginatra from source:

git clone git://github.com/NARKOZ/ginatra.git
cd ginatra/
git checkout v4.1.0
bundle

Create config file or modify existing (see Configuration section in README).

Start the Ginatra server:

./bin/ginatra run

By default Ginatra will run on localhost:9797

Configuration

Create ~/.ginatra/config.yml file with your own settings. See config.yml for a reference.

git_dirs - Ginatra will look into these folders for git repositories. It's required to append * at the end of path. Example: /home/Development/repos/*

sitename - name of the site. Used in the page title and header.

description - description of web interface. Used in index page.

port - port that Ginatra server will run at.

host - host that Ginatra server will run at.

prefix - prefix for the host serving Ginatra. Used when Ginatra is installed in subdirectory.

git_clone_enabled? - enables smart HTTP support and allows to clone git repositories.

log_file - location of the log file where Ginatra will log warnings and errors. If this setting doesn't present Ginatra will log out to the standard output (stdout).

If you installed Ginatra as an app, you can change settings by editing config.yml file in root folder.

You need to restart web server after applying changes to config file.

CLI

You can interact with Ginatra via CLI. The following commands are available:

ginatra run    # Starts Ginatra server
ginatra stop   # Stops Ginatra server
ginatra status # Checks status of the Ginatra server (running or not)
ginatra -v     # Shows version of Ginatra
ginatra -h     # Lists available commands and their options

How to Contribute

Open issues are labeled per perceived difficulty. See contributing guidelines.

More Repositories

1

hacker-scripts

Based on a true story
JavaScript
47,017
star
2

guides

Design and development guides
2,142
star
3

gitlab

Ruby wrapper and CLI for the GitLab REST API
Ruby
1,056
star
4

holder_rails

Client side image placeholders for Rails applications
Ruby
47
star
5

go-nyancat

Nyancat in your terminal
Go
30
star
6

wysihtml5-rails

A wysiwyg text editor for use in the Rails asset pipeline
Ruby
27
star
7

gitlab-live

Interactive online shell for GitLab API
JavaScript
21
star
8

narkoz.github.io

My GitHub Page
HTML
18
star
9

bitcoiner

Ruby interface to the 'bitcoind' JSON-RPC API
Ruby
16
star
10

waifu2x

Ruby wrapper and CLI for waifu2x
Ruby
16
star
11

azericard

Ruby interface to AzeriCard online payment processing system
Ruby
13
star
12

dotfiles

~/.
Perl
11
star
13

git-revision

Ruby gem to get information about git source code
Ruby
11
star
14

mmc

Simple command-line currency converter
Go
10
star
15

yuki

Gifzo compatible web app
Ruby
8
star
16

crank-for-rubygems

Chrome extension to make working with RubyGems more productive
JavaScript
8
star
17

xmas

Light the Christmas Tree in your terminal 🎄
Ruby
7
star
18

whoaz

A ruby gem that provides a nice way to interact with Whois.Az
Ruby
7
star
19

destino

Web service that redirects to a Ruby gem's GitHub or RubyGems project page
Elixir
7
star
20

linguo

Language detection library for Ruby
Ruby
6
star
21

emotee

Japanese emoticons (Kaomoji) for Google Chrome. /人◕ ‿‿ ◕人\ You need them.
CoffeeScript
6
star
22

gh-ex

github experiments by @narkoz
4
star
23

pixeles

Photo gallery web application
JavaScript
3
star
24

ansible-rails

Ansible playbook to provision a Rails deployment environment on CentOS server
3
star
25

middleman-base

Middleman Base Template with my favorite tools (sass, coffeescript, slim, bootstrap)
Ruby
2
star
26

cancancancan

2deep4u
Ruby
2
star
27

z

an attempt at a browser based realtime twitter client in node.js
JavaScript
2
star
28

pixy

API wrapper for Pixiv url shortener
Ruby
2
star
29

whoaz-api

Web API for Whois.Az
Ruby
1
star