GithubHelp home page GithubHelp logo

isabella232 / redmine_atjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evolvingweb/redmine_atjs

0.0 0.0 0.0 454 KB

Integration of redmine with at.js

JavaScript 94.96% CSS 1.92% Ruby 3.12%

redmine_atjs's Introduction

redmine-atjs

Redmine plugin that integrates At.js library to enable auto-completion based on issue titles, while editing wiki and issue pages.

Installation

Tested with Redmine 3.4 and 4.1

cd /opt/redmine
git clone https://github.com/dergachev/redmine_atjs.git  plugins/redmine_atjs

# fix permissions as appropriate for your installation
sudo chown -R www-data:www-data plugins/redmine_atjs

# restart your redmine app, however you do it (nginx/apache2/unicorn/etc...)
sudo service nginx restart

TODO

  • Support multi-word searching (IMPORTANT)
  • consider creating AtjsController to provide optimized/customizable autocomplete endpoint.
  • write tests

Development

This project comes with a Vagrantfile, that allows you to easily spin up a redmine 2.3 development VM, with this plugin installed. To use it, do the following:

# download and install Vagrant, Virtualbox...

# required vagrant plugins
vagrant plugin install vagrant-omnibus
vagrant plugin install vagrant-cachier

# install librarian, a bundler-like tool for chef cookbooks
gem install librarian

# clone this repo to your home directory somewhere
git clone https://github.com/dergachev/redmine_atjs.git  ~/code/redmine_atjs
cd ~/code/redmine_atjs

# install dependent chef cookbooks
librarian-chef install

# spin up the vm... this will take a while.
vagrant up

vagrant ssh
ls /vagrant            # your ~/code/redmine_atjs directory is "mounted" by Virtualbox here

cd /opt/redmine        # redmine root
ls -al plugins         # /opt/redmine/plugins/redmine_atjs --symlinks--> /vagrant/

ls -al public/plugin_assets/redmine_atjs/javascripts      
#    contains all the JS files from plugin (copied on rails restart)
#    public/plugin_assets/redmine_atjs/javascripts/redmine-atjs.js --symlinks--> /vagrant/assets/javascripts/redmine-atjs.js
#    this means tweaking the JS file doesn't require rails restart

# if you change any code in a rails plugin, need to restart rails to test it (even in RAILS_ENV=development)
sudo service unicorn_redmine restart

If this succeeds, you can visit http://localhost:8080 to login to redmine (credentials: admin/admin)

If it fails, you might need to debug/tweak the redmine cookbook. To do this:

cd ~/code/redmine_atjs
mkdir site-cookbooks
git clone https://github.com/dergachev/chef_redmine site-cookbooks/redmine

vim Cheffile   # ensure redmine is sourced from local path instead of git url
librarian-chef install

# tweak chef attributes in Vagrantfile, if necessary
# modify code in site-cookbooks/redmine/recipes/*, if necessary

# re-run chef on the VM, with the cookbook modifications
vagrant provision

redmine_atjs's People

Contributors

dergachev avatar kporras07 avatar shahinam avatar wucris avatar

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.