Skate By Numbers: How I Made The Boardr InstaGame in a Day
Published 11/11/2013 by Rob Meronek
Every now and then, a random kid will email and ask me how I did something on the site. That sure excites the nerd in me when I see a young, curious version of myself who has the potential to grow up and turn that curiosity into a cool job in skateboarding, especially when the inevitable "I want to be a pro skateboarder" dreams collide with harsh physical reality.
This edition of Skate by Numbers isn't necessarily numbers, but it's closely related. I want to show you how easy it is to make computers do anything you want and use that skill to create some value to a business, or even better, start your own business. I'm going to show you how I made The Boardr InstaGame.
I think if no one explains the high level basics to you, programming and working with computers like that can be super intimidating. Looking at a bunch of crazy ass code can make you feel like you're illiterate. I picture it like people who don't skate that look at skateboarding and think it's the most dangerous thing they've ever seen. We all as skateboarders know that's far from the case. Once you know the basics and know how to fall, you're on your way to getting better and better. So many intimidating things in life work this way and making computers work for you is no different.
So, what's involved in making something like InstaGame? First, the concept. I wanted an easy, fun way to do giveaways of product on TheBoardr.com, plus I wanted the stuff to go to fellow skate nerds, so I figured I'd do something in quiz format. I also wanted to make it as easy on myself as possible to create these games every week.
First up, you need a place to store the InstaGames. Databases and how to correctly create them for me was the hardest part of ramping up to being comfortable in making software systems. It took two college semesters to get this stuff to sink in. That sucked, but I'm glad I applied myself there. Databases and the language you use to manipulate what's stored in them is an important foundation, much like learning to kickflip before you 360 flip. Anyway, step one is to create the database storage. Things in a database are stored in tables. There are four "things" I need to record: the InstaGames, the quiz questions for each InstaGame, the people who play the InstaGames, and their answer to each quiz question. That's four tables of database information. It's not as crazy as you think once you learn the basics.
So, now you have a place to store the data, next up is creating the forms to enter and upload the data. For this one, I'm using a plain old website like you're used to using. We use this private website to enter and create the InstaGames, plus do a bunch of other stuff like post photos, articles, etc. Note the typo - this is a private website used only by the employees of The Boardr, so it's messy like your house when there's no company. Know the right place to cut corners and you'll get a lot more done not just with computers, but in life in general.
So, you create this webpage form above that collects the information needed to create an InstaGame such as the title and product giveaway image associated with it. In the code that runs on the webserver, you handle the submission of the data and send it over to the database.
Next, back over in the database, you write little bit of code to take that data and save it in the database.
Now that you can create an InstaGame, you need to make a form that lets you enter quiz items for that InstaGame. You're just repeating all the above steps - make the form, handle the submission of it on the server, send it to the database, save it in the database. Here's the form to enter quiz items for an InstaGame. I wanted to make it a little extra custom so I gave myself two text areas to enter the message you get when you're correct and the message you get when you're incorrect.
Once you've got all your forms done to create games, there's some extras to be done like the ability to edit entries for people who enter bad words and/or sketchy stuff you don't want appearing on your website. The process is the same. Here's where I view the entries and can edit them if needed.
Now it's time for the public part of InstaGame where people on the internet will play it. This involves the same processes - creating forms, handling the data submitted to the server, sending it to the database to be saved, and emailing the player. There are a few extra things to think about here like making sure someone enters a real email address, handling things like them entering an Insta username with spaces in it or adding the unnecessary "@" symbol, etc.
Finally, there's a screen that shows the player their results. This involves writing something that goes to the database and gets the information and presents it to your player. You can also see here how the custom message I entered display to the player.
And there you have it, a silly little quiz game. When this idea just popped in my head on Sunday, I thought it would take me two hours, but I'm always way over optimistic on my time estimates. This ended up taking me about eight. Not bad and I will end up using it over and over for a long time to come, especially as we consider our entry into online retail here at The Boardr. This hopefully will help drum up some traffic and some sales to pay the bills here.
Once you know how to make computers do anything you want, you can work anywhere, build anything, and be around whatever makes you happy. Thanks for nerding out! Email me with any questions anytime at Rob@TheBoardr.com.
Photos
Related Results
There are no related results for this post.Related Articles
The Boardr InstaGame: Win Matix Gear While Lurking The 'Gram
11/12/2013
Our stuff's been piling up here at The Boardr's tiny offices in the hood of Ybor, so I figured I'd code up a simple and fun way to give it all out. I'm pulling a few Instagram photos for you to guess who posted them and turn it into a giveaway game.
How to Run a Skateboarding Competition: The Boardr Live
11/13/2013
The Boardr Live is a live and instant real time scoring app I wrote to help people run their skateboarding events and competitions quicker, easier, and with less of a headache, fumbling with paper, spreadsheets, etc. I just recorded this quick demo that shows the entire process from start to finish.
InstaGame: Win a Baker Andrew Reynolds Deck This Week
11/18/2013
This week we've got a Baker Andrew Reynolds deck for you just for lurkin' Instagram and playing a round of InstaGame. Good luck! Every Monday is a new one. These are all from accounts that The Boardr follows on Insta. Winner is picked on Thursday from the list of Top Entries.
InstaGame: Win a Tum Yeto Box
11/25/2013
Were you paying attention this week on Instagram? If so, you can win these Pig Wheels, Bro Style shirt, and Toy Machine accessories right now on a newInstaGame from Tum Yeto.
Skate By Numbers: Creating a Custom Point of Sale and Inventory Management App
11/30/2013
In this video I cover the whole process where I'll show you how we've made it super easy to get a product from UPS's delivery truck to your website super fast.
InstaGame: Win a Diamond X Grizzly Box
12/2/2013
This week we have a Diamond box with a Grizzly long sleeve and a crew neck sweatshirt. Stay warm outside of Florida! We're also throwing in some Diamond socks.
Skate by Numbers: More on the Custom POS System
12/5/2013
This is where you ring up sales and process a customer coming in to skate and/or buy something. I wonder if anyone will catch the few inside jokes I sprinkled in here?
Instagame: Win a Deathwish Neen Williams Deck
12/9/2013
This week we've got a Deathwish Neen Williams deck. You also get those Brigada shades that Porpe is wearing.
Shaqueefa Buys a Digital Gift Card at The Boardr
12/11/2013
Don't gift cards just suck? You can lose them, they expire, you forget you had them, you have to enter a 500 digit number to use it online, buying one as a gift is a pain, etc.
InstaGame: Win Dekline Shoes and a Bro Style Shirt
12/30/2013
This week on InstaGame is a pair of Dekline shoes in size 8.5 and a Bro Style shirt that will be arriving on your doorstep if you know who posted these Instas.
InstaGame: Win a Z-Flex Complete Cruiser
3/4/2014
Congrats to Jaguar Stevens for winning the Toy Machine Socks InstaGame. This week,Z-Flex hooked it up nice with a complete cruiser. Winner picked on Monday.
No Surprise: Skateboarding Climbing the Hip Hop Charts
5/7/2014
I have 25+ years of rap lyrics memorized that you can get spilling from my lungs with just a small percentage of alcohol in my blood. It's been an interesting unfolding over those two plus decades watching that other thing I'm into mesh cultures with hip hop. Today I was cleaning up some of my digital memory banks and ran some key words through Rap Genius' Rap Stats tool. They catalog all these words in hip hop lyrics and created a tool that plots the useage of words in lyrics over the years. Are you surprised by the growth of skateboarding? I wonder if the sketchy skateboarding industry has seen the same growth in their numbers. In regular popsicle stick boards, my guess is no.
Is Skateboarding Doomed? Google Seems to Think So
6/23/2014
I use Google Trends to track the popularity of certain search terms. I put in skateboarding vs scooters and found these alarming results. In your experience, does real life reflect the situation in this chart?
$2.4 Million Paid to Skateboarders in 2015: Statistics and Contest Earnings
12/16/2015
Well it sure pays to be a contest skater these days. $2.4 million in prize money was paid out at skateboarding contests in 2015. We've got a summary of that and some other numbers from our mountain of skateboarding data here at The Boardr.