Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iboard/eac
Engine Application Composer
https://github.com/iboard/eac
Last synced: 16 days ago
JSON representation
Engine Application Composer
- Host: GitHub
- URL: https://github.com/iboard/eac
- Owner: iboard
- License: mit
- Created: 2012-05-28T19:26:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-30T15:13:12.000Z (over 12 years ago)
- Last Synced: 2024-12-12T10:48:45.428Z (22 days ago)
- Language: Ruby
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Engine Application Composer
===========================**EAC** is a set of Rails-engines and a 'Dummy-application' named `eac`.
Build your own Rails-app
------------------------To build your own Rails-app based on EAC's engines fork `eac` from Github
and edit `eac/Gemfile`. Edit the section where engines are loaded and remark
all engines you will not use.
[....]
# EACUSR ENGINE
gem "eacusr", path: File.expand_path('../../eacusr', __FILE__)
[....]And in `eac/config/routes.rb` edit the corresponding lines
to mount the used engines.
Rails.application.routes.draw do
mount Eacusr::Engine => "/eacusr"
end`eac` dummy-applicaton
======================If you forked this project from Github you will see the
following directory-structure.**/eac**
> The dummy-applicaton to test the various engines**/eacusr**
> The User-engine implements /eacusr and supports a
> user-model using omniAuth with several oauth-providers
> preconfigured and omniauth-identity for local users_More engines will follow_
Create your own Engine
======================> *In near future, there should be a generator to do this steps in one command.*
In project's root-path do
rails plugin new eacYOUR_ENGINE --mountable --skip-testunit --skipactiverecord -T --dummy-path=spec/dummyThen add the following line to `eac/eac/Gemfile`
gem "eacYOUR_ENGINE", path: File.expand_path('../../eacYOUR_ENGINE', __FILE__)Add the following block at the end of `eac/eacYOUR_ENGINE/Rakefile`
task :default => :rspectask :rspec do
system "rspec spec/spec_helper.rb spec/*/*_spec.rb"
endCopy an existing spec_helper.rb to `eac/eac/YOUR_ENGINE/spec/spec_helper.rb`
You can copy from `eac/eacusr/spec/spec_helper` and change the file near bottom to
config.include EacYOUR_ENGINE::Engine.routes.url_helpersRun `rails g rspec:install` in `eac/eacYOUR_ENGINE` and
* create eac/eacYOUR_ENGINE/spec/integration
* copy eac/eacusr/spec/integration/eacusr_engine_spec.rb to eac/eacYOUR_ENGINE/spec/integration/eacYOUR_ENGINE_spec.rb and edit the file to fit the engine's name.Start developing your engine in `eac/eacYOUR_ENGINE`. While developing you can run `rake` in
the project's root-path to test the dummy-app using your engine.Run the server
==============
cd eac
rails serverand visit http://0.0.0.0:3000
Run the specs
=============Just run `rake` in the project's root-directory to run all engine's specs in a batch or change to one of the engine's directories and exec
`rspec spec/rspec_helper.rb spec/*/*_spec.rb`