GithubHelp home page GithubHelp logo

rafasashi / better-schema-designer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gabivoicu/better-schema-designer

0.0 3.0 0.0 1.04 MB

Modifying Code of a JS Schema Designer to Display Tables

Ruby 1.11% HTML 0.80% XSLT 9.37% CSS 0.67% JavaScript 88.05%

better-schema-designer's Introduction

##Work In Progress.

We have taken an Open Source database schema designer off of PHP, put it on Sinatra and plan to make it display an actual database table based on a schema designed by the user.

The purpose is to help new programmers visualize join database tables easier. I believe that for beginners database schemas are confusing and add an unnecessary level of abstraction; it's harder to understand what a tagged_posts table would hold, for example(that table being the joint table of posts and tags tables).

##What It Does, as of April 15th 2015 After you build a database schema, if you right-click on that schema it will generate a database table with faker.js data. (Table will be generated in the upper left corner). Right clicking again will generate a new table on top of the old one- the original code is from 2007 and the author pretty much wrote his own jQuery, but there is no replaceWith() what would work. I have considered adding jQuery to it, but as some of it is already written the complications are hard to predict.

The code to modify is mostly found in /public/js/wwwsqldesigner.js, we have added lines 663-710 and 717-723. Files /public/js/oz.js and /app/views/index.erb are also of interest.

We have also removed the awful, a-million-tiny-squares-per-square-inch background. join table users table

##To Run Locally

  1. Clone to your machine git clone https://github.com/gabivoicu/Schema-to-Table-DB-Designer.git (or fork and then clone)
  2. Install gems bundle install
  3. Run server be shotgun (or bundle exec shotgun)
  4. Navigate to http://localhost:9393/

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.