Giter Club home page Giter Club logo

localtower's Introduction

Localtower

See the schema

Schema

Create a model

Models

Create a many to many relation

Relations

Create a migration

Migrations

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:

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

Contribute

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

Analytics

localtower's People

Contributors

rasmachineman avatar sergio-rivas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.