mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
.. | ||
.gemspec | ||
.gitignore | ||
application.scss | ||
engine.rb | ||
Gemfile | ||
LICENSE.txt | ||
rails | ||
Rakefile | ||
README.md |
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:
- Run
make docker
, - Run
make cli
->rake db:migrate
, - (optional) setup any addon initializers/settings,
- Start application (
make run
)!