Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/strzibny/invoicebarstandalone

Outdated as InvoiceBar is now a classic app.
https://github.com/strzibny/invoicebarstandalone

Last synced: 13 days ago
JSON representation

Outdated as InvoiceBar is now a classic app.

Awesome Lists containing this project

README

        

# Standalone InvoiceBar

This repo shows usage of InvoiceBar Engine/RubyGem as a standalone application.

It simply loads the application at `/`.

## Changes to the newly generated Rails app

Create a new Rails app:
```
$ rails new standalone
```
Specify the dependency:
```ruby
# Gemfile
gem 'invoice_bar'
```
Update by running `bundle` command:
```
$ bundle
```
Load the Engine:
```ruby
# config/routes.rb
mount InvoiceBar::Engine => "/"
```
Copy the migration files using `rake`:
```
$ rake invoice_bar:install:migrations
```
Create db and run migrations:
```
$ rake db:migrate
```
And run the app:
```
$ rails s
```
That`s it!