Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/strzibny/invoicebarstandalone
- Owner: strzibny
- Created: 2012-12-31T14:27:43.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-31T14:30:57.000Z (about 12 years ago)
- Last Synced: 2024-11-12T09:50:33.696Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!