Live Leaderboard Website - ruby-on-rails

i'm here with a big question :p
In first sorry for my english, i'm french
So, i have website, i practice crossfit ( You know ? the sport ) and i want to make a live leaderboard on my website, it make in wordpress.
So my question is : Do you have some ideas to help me ? I'm looking for create this leaderboard in ruby on rails but.. i'm not sure. So you thinks that is it possible to create with other technologies or with wordpress ? or ruby if it's possible (Currently i use google sheet and plugin wpdatatable) but i want to synchronize sending a team's score via a form and then process the data on google sheet or other and display them.
Thanks for all ideas , and ask me if you want ! Regards :)

Related

How do Airbnb implemented localization and realtime booking?

I was wondering if anyone know about how did the Airbnb implemented their system such that only local listings or listings within a specific area (based on the postal code) will appear to the user ? And also , how did they implemented real time booking so that if a property gets booked , it won't appear available to the next person ? Are there any API's available that could help me implement the same for my store ?
If anyone could provide any guidance , that will be very helpful.
Thank you !
AirBNB don't use Shopify.
It's an entirely different system. With that, they'll have very different technical abilities.

Listing elements by geolocation

I am trying to create a listing website, though i am a newby in programming i started self-learning.
My question:
I want to list elements(restaurants) on the homepage by the nearest from user who entered my website,
Could you please advise something or maybe a ready script or code
Thank you very much in advance

Rails app for food truck, using twitter to update the google map.

So I am writing a rails application for my friends food truck business.
The functionality that I am trying to create with this specific application is the ability for him to update the google map by posting a Geo-location tag on twitter.
A lot of the ruby gems that deal with google maps seem to be depreciated so I'm a bit lost at the moment. If anyone could just point me in the correct direction I would appreciate it.
I realize that this feature is just a quality of life feature but id like to be able to do it with embedded ruby and not have to break out the JavaScript (ugh). Ideal this kind of automation would be great for this particular type of website because my friend won't always have access to the back-end of the website when he is on the move. (Already able to update a map from an admin backend but its not good enough for a business that moves multiple places in a given day.)
anyways, thanks in advance. (if anyone wants me to post any of my code I will.)
So after reading your question, I thought it would be fun to tinker with the Twitter API again since I haven't used it in a while.
I went ahead and created a sample application for you that basically does what you were asking for. It looks for recent tweets from a user, grabs the latest one, then updates a Google map with a marker on that location.
Keep in mind that this was quickly thrown together, so it's far from perfect. But all the concepts should be there!
Feel free to reach out if you have any questions about the app or anything else. I'm always happy to help.

Web - Update app content?

I have a simple question and I could not find a good answer on every search I've made. I wanted to make an app about a company that helps poor people and children with problems. They asked me if I could do an app that would show their latest news and campaigns, and, of course, I said I would do it for free. But I'm kind of a begginer, and I don't know how I should retrieve the news from their website (or twitter) to my app. I've heard of JSON and XML, but I don't know if that would do it. I want an app that would have all the news up-to-date, can anyone please give me some advice and help me? Thanks a lot everyone.
If they have an RSS feed, you could write an app that pulls down the feed, parses it and displays each entry in a table row. You should be able to find plenty of examples on http://github.com to help you.

Adding special offers to website

I am new to web development. Currently I am designing a website where people can purchase different stuff. The website has got a number of special offers such as if you shop for more than $200, you get 20% off, if you shop for 3 similar items, you get a fourth one free.
Can anybody just point me in the right direction what is the best way to do this? Also if the offer changes, I donot have to change a lot of code.
thanks!
You can use various e-commerce and payment gems like the ones in Railscasts.
Some more gems for this purpose are here - The Ruby Toolbox and here too.
As mentioned in the comments, you can use the Saas products like Shopify but that's not free.
I'll point you to some code that should help you out.
For example, " if you shop for 3 similar items, you get a fourth one free. " in ror_ecommerce this is a "Deal". The code is here:
https://github.com/drhenner/ror_ecommerce/blob/master/app/models/deal.rb
This code is not straight forward but basically looks for the best deal an order qualifies for.
if you have buy 2 get one free you might want to implement buy 4 get 2 free and buy 6 get 3 free...
Similiarly ror-e has sales. The only thing you would need to add is a condition for order.total and pass that value into the Sale.for method.
I hope this helpss
DISCLAIMER: I wrote the code!

Resources