Giter Site home page Giter Site logo

opengrok-restful's Introduction

opengrok-restful

Setup opengrok

  • Start opengrok server and limit the cpu usage of opengrok indexer.
  • Period of automatic mirroring/reindexing (10min).
  • The volume mounted to ~/Projects should contain the projects you want to make searchable.
  • Open http://127.0.0.1:8080 to enjoy.
$ sudo docker run -d --cpus="1.0" \
    --name opengrok \
    -p 8080:8080/tcp \
    -e REINDEX="10" \
    -v ~/Projects:/opengrok/src/ \
    opengrok/docker:1.3
  • You can avoid to sync source code from upstream.
$ sudo docker exec -it opengrok sed -i 's/opengrok-mirror/#opengrok-mirror/g' /scripts/index.sh
  • You can manually trigger an reindex using docker exec.
$ sudo docker exec -it opengrok /scripts/index.sh

Setup opengrok-restful

$ git clone https://github.com/RainMark/opengrok-restful.git ~/opengrok-restful
  • Emacs config.
;; opengrok-restful
(add-to-list 'load-path "~/opengrok-restful")
(require 'opengrok-restful)
(setq opengrok-restful-source-directory "~/Projects")
(global-set-key (kbd "M-d") 'opengrok-restful-lookup-def)
(global-set-key (kbd "M-f") 'opengrok-restful-lookup-full)
(global-set-key (kbd "M-s") 'opengrok-restful-lookup-symbol)
(global-set-key (kbd "M-p") 'opengrok-restful-lookup-path)
  • When you lookup symbol with opengrok-restful, Input nothing to lookup all projects that indexed, Input โ€˜cโ€™ to lookup current project.

./opengrok-restful.gif

./opengrok-restful.png

opengrok-restful's People

Contributors

hitmoon avatar rainmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hitmoon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.