scinote-web/lib/generators/addon/templates
2019-01-18 17:54:27 +01:00
..
.gemspec Add addon generator 2017-02-07 09:30:28 +01:00
.gitignore Add addon generator 2017-02-07 09:30:28 +01:00
application.scss Add addon generator 2017-02-07 09:30:28 +01:00
engine.rb Fix addon generator 2017-02-10 11:49:05 +01:00
Gemfile Add addon generator 2017-02-07 09:30:28 +01:00
LICENSE.txt Add addon generator 2017-02-07 09:30:28 +01:00
rails Add addon generator 2017-02-07 09:30:28 +01:00
Rakefile Add addon generator 2017-02-07 09:30:28 +01:00
README.md Rename sciNote -> SciNote (lib/ folder) 2018-05-21 15:31:05 +02:00

SciNote addon - ${ADDON_NAME}

How to include this addon inside main SciNote application

  • Inside Gemfile, add the following reference:
gem '${FULL_UNDERSCORE_NAME}',
    path: 'addons/${ADDON_NAME}'
  • Inside config/routes.rb, add the following reference:
mount ${NAME}::Engine => '/'
  • If you have any addon-specific JavaScript code, add the following reference inside app/assets/javascripts/application.js.erb:
//= require ${FOLDERS_PATH}
  • If you have any addon-specific CSS code, add the following reference inside app/assets/stylesheets/application.scss (starting comment):
 *= require ${FOLDERS_PATH}/application

Then, do the following:

  1. Run make docker,
  2. Run make cli -> rake db:migrate,
  3. (optional) setup any addon initializers/settings,
  4. Start application (make run)!