All Projects β†’ damln β†’ Localtower

damln / Localtower

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

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Localtower

Scenic
Scenic is maintained by Derek Prior, Caleb Hearth, and you, our contributors.
Stars: ✭ 2,856 (+612.22%)
Mutual labels:  schema, database, rails
Postguard
πŸ› Statically validate Postgres SQL queries in JS / TS code and derive schemas.
Stars: ✭ 104 (-74.06%)
Mutual labels:  schema, database
Scaffolder
Database scaffolding tool
Stars: ✭ 102 (-74.56%)
Mutual labels:  schema, database
Trilogy
TypeScript SQLite layer with support for both native C++ & pure JavaScript drivers.
Stars: ✭ 195 (-51.37%)
Mutual labels:  schema, database
Squid
πŸ¦‘ Provides SQL tagged template strings and schema definition functions.
Stars: ✭ 57 (-85.79%)
Mutual labels:  schema, database
Neo4j Graphql
An optimized neo4j query resolver for Facebook's GraphQL
Stars: ✭ 60 (-85.04%)
Mutual labels:  schema, database
Schemaspy
SchemaSpy code home
Stars: ✭ 2,027 (+405.49%)
Mutual labels:  schema, database
Seamless database pool
Add support for master/slave database clusters in ActiveRecord to improve performance.
Stars: ✭ 222 (-44.64%)
Mutual labels:  database, rails
Query track
Find time-consuming database queries for ActiveRecord-based RailsΒ Apps
Stars: ✭ 258 (-35.66%)
Mutual labels:  database, rails
Schemazen
Script and create SQL Server objects quickly
Stars: ✭ 273 (-31.92%)
Mutual labels:  schema, database
Mithril Data
A rich data model library for Mithril javascript framework
Stars: ✭ 17 (-95.76%)
Mutual labels:  schema, database
Erd
A Rails engine for drawing your app's ER diagram
Stars: ✭ 296 (-26.18%)
Mutual labels:  database, rails
Eralchemy
Entity Relation Diagrams generation tool
Stars: ✭ 767 (+91.27%)
Mutual labels:  schema, database
Squasher
Squasher - squash your old migrations in a single command
Stars: ✭ 1,260 (+214.21%)
Mutual labels:  schema, database
Sleekdb
Pure PHP NoSQL database with no dependency. Flat file, JSON based document database.
Stars: ✭ 450 (+12.22%)
Mutual labels:  schema, database
Goose
A database migration tool. Supports SQL migrations and Go functions.
Stars: ✭ 2,112 (+426.68%)
Mutual labels:  schema, database
Counter culture
Turbo-charged counter caches for your Rails app.
Stars: ✭ 1,397 (+248.38%)
Mutual labels:  database, rails
Reactive record
Generate ActiveRecord models for a pre-existing Postgres db
Stars: ✭ 132 (-67.08%)
Mutual labels:  database, rails
Mongoke
Instant Graphql for MongoDb (active branch is golang, rewrite in process)
Stars: ✭ 203 (-49.38%)
Mutual labels:  schema, database
Pgquarrel
pgquarrel compares PostgreSQL database schemas (DDL)
Stars: ✭ 274 (-31.67%)
Mutual labels:  schema, database

Localtower

See the schema

Schema

Create a model

Models

Create a many to many relation

Relations

Create a migration

Migrations

Using the Capture plugin

Capture

INSTALL

Only tested with Rails 4.2 and Rails 5.1 (should work with any Rails 4.2+ application). Only tested with PostgreSQL.

Add to your Gemfile file:

group :development do
  gem "localtower"
end

If you want the latest master branch, add to your Gemfile file following:

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

Run command in your terminal:

bundle install

Add to your config/routes.rb:

MyApp::Application.routes.draw do
  if Rails.env.development? and defined?(Localtower)
    mount Localtower::Engine, at: "localtower"
  end

  # Your other routes here:
  # ...
end

Usage

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

Logger Usage (Capture plugin)

You can put this line anywhere in your code:

Localtower::Plugins::Capture.new(self, binding).save

For example:

def my_method
  user = User.find(1)
  some_data = {foo: "bar"}

  Localtower::Plugins::Capture.new(self, binding).save
end

Then go to the Localtower intercave here: http://localhost:3000/localtower/logs and you will see the variables user and some_data in the UI.

Notes for the Capture plugin:

The value for each variable will try to call .to_json. If you have a huge collection of models likes @users you will see all the collection as an Array.

RSpec and Contribute

If you want to contribute to the gem:

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

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 framework for each test. Zeus or spring should be introduced.

Contribute

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

Analytics

Deploy

rm *.gem | gem build localtower.gemspec && gem push localtower-*.gem
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].