Git Product home page Git Product logo

twist's Introduction

Twist

Twist provides an easy book-reviewing platform for authors using the LeanPub Markdown format. Twist will update your book as soon as you push it to GitHub. It's super easy!

Preview

You give people a login for the system (through the rails console), and then they can leave notes on the elements within the chapters within your books. Elements are anything ranging from paragraphs, to images, to blockquotes and so on.

Twist uses PostgreSQL and the data model is fairly simple:

Book -> Chapters -> Elements -> Notes -> Comments

It also uses Redis for background job processing using Sidekiq.

I wrote the foundations for this application in one single day after I raged at Manning's review tool lacking specific features I wanted, such as automatic updating when I pushed to a repo. Now I've released it into the wild, converted it to use Leanpub's Markdown so that myself and other Leanpub authors may use this tool.

Installation

To run this, you'll need the following:

  • Ruby 2.2.2
  • Rails 4.2.3
  • Redis
  • PostgreSQL
  • Phantom JS (for tests only)

Install the dependencies for the app and the submodules that Twist uses for testing using these commands:

bundle install
git submodule init
git submodule update

The app also uses Sidekiq to run some background jobs for books. Books won't be processed at all unless you're running the workers, so make sure to do that.

To set up the application, you'll need to create a book and a user. The best place to do that is in the rails console:

book = Book.create(:title => "Markdown Book Test", :path => 'radar/markdown_book_test')
book.enqueue
User.create(:email => "[email protected]", :password => "password")

Once you've done that (and made sure the Sidekiq workers are running!), you should be able to go into the application and see the book in its current state.

If you want to set up post-receive hooks -- which is basically the whole point of the application! -- then set one up on GitHub, pointing it at http://yourserver.com/books/receive and Twist will do the rest.

I SAW A BUG! I DID! I DID!

If you've seen a bug, please file an issue on https://github.com/radar/twist/issues and I'll try to deal with it when I get a moment. Twist's sourcecode is fairly light and so you may even be able to dive in to it yourself and figure it out. Go on, give it a try!

twist's People

Contributors

josegonzalez avatar radar avatar

Watchers

 avatar  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.