An open API service indexing awesome lists of open source software.

https://github.com/micrum/table-editor


https://github.com/micrum/table-editor

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Table-editor

Table-editor with REST API and CRUD operations. Powered with Ruby on Rails, PostgreSQL and React.js

Check out [DEMO](https://table-editor.herokuapp.com/)

## Set up and development

Clone repository:

$ https://github.com/micrum/table-editor.git
$ cd table-editor

Install RVM:

$ \curl -sSL https://get.rvm.io | bash

Install ruby, create a gemset:

$ rvm install ruby-2.3.0
$ rvm use 2.3.0@teditor --create

Install app dependencies:

$ gem install bundler && bundle install

Install Postgres:

http://www.postgresql.org/download/

Create database & update DB schema:

$ rake db:create
$ rake db:migrate

Run development server:

$ rails s

Enjoy:

http://0.0.0.0:3000/

## API

GET `/fragments` display a list of all fragments

POST `/fragments` create a new fragment

PUT `/fragments/:id` update a specific fragment

DELETE `/fragments/:id` delete a specific fragment

## Application structure

.
|-- app/
| |-- assets/
| | |-- javascripts/
| | | |-- components/ # React components
| | |-- stylesheets/ # CSS
| |-- controllers/ # Rails controllers
| |-- models/ # Rails models
| |-- views/ # HTML templates with embedded Ruby
|-- config/ # app config files and initializers
|-- db/ # DB schema and migrations
|-- Gemfile # List of Ruby gems
|-- Procfile # Heroku dyno scripts
|-- README.md