LoginSignup
16
17

More than 5 years have passed since last update.

Milkodeでソースコード検索

Last updated at Posted at 2014-12-30

概要

複数のプロジェクトのソースコードを横断的に検索したい場合に、
Milkodeが便利です。
検索が高速(20000ファイルでも1秒以内とのこと)で、階層や拡張子で絞り込むことができます。

Milkode - 行指向のソースコード検索エンジン

  • 検索結果例

MilkodeResult.png

環境

Ubuntu14.04

インストール

$ sudo apt-get install ruby
$ sudo apt-get install ruby-dev
$ sudo apt-get install g++
$ sudo gem install milkode

Milkodeのデータベースを作成

$ milk init --default

パッケージ登録

MilkodeのソースとSinatraのソースを登録してみました

  • Git clone
$ sudo apt-get install git
$ git clone https://github.com/ongaeshi/milkode.git
$ git clone https://github.com/bmizerany/sinatra.git
  • パッケージの追加
$ milk add milkode/
$ milk add sinatra/
  • パッケージの更新

$ milk update --all

Milkodeのウェブアプリを起動

$ milk web -o 0.0.0.0 -n

ウェブアプリにアクセスして検索

MilkodeIndex.png

16
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
17