https://github.com/micrum/table-editor
https://github.com/micrum/table-editor
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/micrum/table-editor
- Owner: micrum
- Created: 2016-04-02T14:06:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-04T00:09:56.000Z (over 10 years ago)
- Last Synced: 2025-01-28T08:54:53.368Z (over 1 year ago)
- Language: Ruby
- Homepage: https://table-editor.herokuapp.com/
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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