📜 ⬆️ ⬇️

Twilike.net - mini-startup for commenting movies directly from Twitter

I want to introduce a small startup with which you can evaluate and comment on films from Twitter, as well as view these comments.
image

Part I. The choice of course.
image
Studying in my university in the second year for the first time I had to choose my coursework and start doing it. My choice was a small Twitter service that allows you to rate and comment on movies directly from Twitter - twilike.net .
The idea was that after watching a movie, it was very convenient to comment out and rate it directly on Twitter (by that time I, apparently, was already inspired by twitter :-)).
The next question was: what should I actually write on? Since at that moment I knew only php suitable for the web (but I didn’t like him much, I don’t know why) I had to learn something new.
The choice fell on Ruby.

Part II. Ruby and Sinatra.
image
Well, Sinatra was chosen as the web framework, and I used DataMapper as the ORM. Such a choice was made thanks to articles from Habr Habraphew indigo about building home file sharing on Sinatra && DataMapper && Haml. I chose Haml as a template engine and I still remember him with great warmth :-)
I started studying Ruby from those very “ drops ” of the Startup Programmer and the official Ruby website.
Ruby was studied, the first version of the site was ready and here ...

Part III. Gae.
image
... I learned about Google App Engine . I was inspired / impressed by the idea of ​​reducing the capabilities of the platform, but getting in return almost perfect vertical (or horizontal ... I don't know :-)) scaling the application! Actually, I am still inspired by this idea :-)
The “very, very initial” Python was studied and the simplest application for loading and scaling images was written, which is still used in my Twilika .
Not to say that I worked a lot with GAE, but I liked what I saw!
')
Part IV. VDS and the first compilation of software.
image
The next question I faced was “where is the application itself?”.
Unfortunately, ruby ​​is not php and has some problems in the “student-hosting-student” niche :-) But in any case, VDS and a sea of ​​fun for two days were purchased in the form of tuning this very VDS.
It was fun, though not-to-understand, why not working Passenger strenuously pushed me into a stupor, and also took away a decent part of spiritual balance :-)

Part V. Long Live The Rails are Fragrant!
image
At some point, looking at my “horror-o-trash-o-heap” of MVC, I decided to ENOUGH. Sinatra is not the place, you need to look at the big and terrible Ruby On Rails .
Starting with Agile Web Development with Rails, Third Edition and making another store :-) decided to start writing Twilike already on Rails.
Thanks to Rails Guides , RailsCasts , Rails Api and Rails in general.
After the correspondence, the application has become much better and has already become attached to some “non-bunch-of-all”. Also on the way were used DelayedJobs and Cells plugin ( thanks to the RubyOnRails to russian Google group ).
In general, for myself, I realized that you should not write your crutches, but you should use and refine someone else's :-)


Part VI. Heroku.
image
And again, after reading on Habré about Rails hosting Heroku decided to try to use it :-) and run Tvilayk on it. Everything was much simpler than with my hosting - I just uploaded the application and it worked! (well, rather, almost :-))
And what surprised me the most was the fact that the application worked much faster on the Heroku free tariff than on my dead VDS.

Well, a little about the service itself.
It is mega simple :-) Tweet a message with the hashtag #twilike like this: “Pulp Fiction. Just looked. Best movie! # twilike + ”and after a while watch this comment on Tvilikake :-)
That is, the syntax of the review is: The name of the film (full stop is required) Comment. #twilike (+ or = or -)

Tvilayka website and about .

I would be glad if Habra users with Twitter used Tvilayk :-)

Thanks to everyone who read :-)

ps It is interesting how the Heroku free tariff will respond to the Habraeffect :-) - of course, if there will be one :-)

Source: https://habr.com/ru/post/71258/


All Articles