Skip to content

Manage your Ruby on Rails models, relations, and migrations from a simple UI.

Notifications You must be signed in to change notification settings

RasMachineMan/localtower

 
 

Repository files navigation

Localtower

See the schema

Schema

Create a model

Models

Create a many to many relation

Relations

Create a migration

Migrations

INSTALL

Add to your ./Gemfile:

# In your Gemfile

group :development do
  gem "localtower"
end

If you want the latest master branch:

# In your Gemfile

group :development do
  gem "localtower", github: "damln/localtower"
end

In your terminal:

bundle install

Add to your config/routes.rb:

# in config/routes.rb

if Rails.env.development?
  mount Localtower::Engine, at: "localtower"
end

Usage

Open your browser at: http://localhost:3000/localtower

RSpec

Create a .env file inside the spec/dummy folder with the credentials to your PostgreSQL Database. It should look like this:

spec/dummy/.env:

LOCALTOWER_PG_USERNAME="admin"
LOCALTOWER_PG_PASSWORD="root_or_smething"

Run the spec:

bundle install
bundle exec rspec spec/

Notes: Tests are currently very slow because this is testing rails commands so it boots the rails for each test. Zeus or spring should be introced.

Contribute

Thanks for reporting issues, I'll make my best.

About

Manage your Ruby on Rails models, relations, and migrations from a simple UI.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 48.2%
  • Ruby 34.9%
  • JavaScript 8.8%
  • HTML 8.1%