Hi friends, how are you? In my previous video I showed you the importance of URL shortening. Now what about setting up a premium or paid URL short system for your own use so that people who want to purchase it can use it and pay for. So today we're going to discuss how to setup Url Shortener, which is nothing but python script based on Google App Engine Infrastructure as API servers.
So let's get started with the first step:
-- The First Step Of Building Your Own URL Short System --
First we will need an account in Google app engine environment, and that requires setting up our project there which cost a $300 try fee [for 100 hours], this means if your project hits its 100h usage time, Google will charge you another $300. So it means if your project takes one hour to complete 100% of its work, and then Google will charge you a try fee of $300.
The good thing is that there is no need to keep paying for what we don't use because actually the service runs on idle state in this case but still having some cost to it so that's why they are charging you every time when your project hits its 100h usage limit. It's better than other services where they have free plans which actually means they start charging you once your projects starts making money for them!
So here are the steps:
-- Step 1: Sign in To Your Account --
To get started, open a new browser window or tab and go to https://console.developers.google.com/projectselector/?hl=en&tab=cr , enter the country you want to run your business from, create your login id and password for that account then click on 'create'.
-- Step 2 : Goto Google App Engine Space --
It will take some time to set up your project there, once its done [wait for like 10 minutes or so] it will redirect you to this page
So click on the blue button offered there where it says "Configure'', Wait for another 10 minutes until it load everything into the screen then do as shown in the picture below:
-- Step 3: Setup Your Project --
Now you will have to set up your project name, this is the name of your URL short system which we're going to build today. This domain will be the front-end point for our customers and users so they can access it remotely and short urls from there, so make sure you choose a good domain name according to your business niche or something that tells what's it all about [so we don't need everyone knowing about us]. After you finish creating the project then click on 'Publish Preview' button offered right next to 'Configure' button as shown in screenshot below
Next click 'Use App Engine SDK'. It will take some time to load everything again on the page then you will be directed to this screen:
-- Step 4: Choose your script engine --
Now we have the option to choose our programming language [Python or Java] but for this tutorial we're going to use Python since it's easier and faster than java. As explained in the video, java might give you better accuracy when we talk about accuracy in term of numbers rather than python for example, but still both are good at their own places, you can always go with Java if that makes more sense for you, some people find it easy while others find it hard so I'm just write python here because most people prefer it over any other languages including and mainly Java. After selecting the language now click on 'Create'.
-- Step 5: Setting Up Python Project --
Once you click on 'create' button your python project will now be setup in that page, it's a sea of options but don't worry I'll guide you step by step through them all, so let me explain the first things we see here
Click on 'Configure' and wait for another 10 minutes [you have to wait long because google pages load with time and then they are heavy to load] after everything loads there will be two rows of buttons there. So click on APIs & auth and turn Auth switch On as shown in screenshot below:
Next go down to 'Credentials' column which is right next to the API & Auth button and click on Create new Client ID, it will take some time again to load the next page then a white pop up asking for your client email address and password, set one of them then click on the check box as shown in screenshot below:
-- Step 6: Save Your App Engine Project --
Next thing to do is go down to 'OAuth consent screen' and fill out every field there if you want to. Leave every other fields empty apart from Service Account Email Address which should be your Google Application project id without the @developer.gserviceaccount.com part at the end so follow this format [project id][TAB]@developer.gserviceaccount.com . So I'm using my own example here but you can use whatever you want to, just make sure you have the right email address and password that you set earlier from the pop up.
-- Step 7: Create Your First APP --
After finishing with 'OAuth Conset screen' , click on 'Credentials' then 'Create credentials' in order to add new credentials for App Engine. Next choose APIs & auth then choose service account keys as shown in screenshot below :
Your browser will now ask for your client id and password again so input that information using previous steps we followed before above [steps 1-2] after filling them all out properly it will take around 2 minutes or more to load anymore there, wait until everything loads properly. When everything is loaded you will be brought to this page:
-- Step 8: Save Your Web App --
Next click on the 'Create' button after filling out every fields for your web application. Then you will be brought to another screen where you need to fill out every field there as shown in screenshot below :
-- Step 9: Configuring Rewrite Module --
After finishing with that last step of yours, go down to bottom right corner and open up Google App Engine Administration console located next to 'Service Account' box then scroll all the way down until you find the "rewrite module" section, there was a message saying "Please add a new rule..." so follow that message by clicking on it , then copy and paste the script that I provided there, then click on create as shown in screenshot below:
-- Step 10: Make Sure Everything Works --
Finally go back to your default web browser and type the following URL [https://app-id.appspot.com/admin] (which is my own app engine url so you have to use yours instead of mine), you will see Admin Console which looks like this :
So from here we can't do anything , but if you check with bottom right corner of the page should be a button called "Try it out!" so hover your mouse over it and press 'go'. It will then ask for username and password again just input email address and password and press 'login' . You will then see a page like this:
-- Conclusion --
So these were the steps to build your very own URL shortening system, I know it's hard and takes time but if you managed to get trough all of them then congratulations because you did it! So now you can use this system for yourself or sell it and start a SAAS business online.
So thanks for being with me until here, remember to leave your comments below about my video guys , cheers! :D [ARTICLE END]
Title: How To Setup A Premium URL Shortening Service (GSA PR4 - Part 1)
Below are screenshots showing how long each component take to load on Google pages (in minutes): The title tag for the webpage where you are taking the screenshot MUST have your keyword in. This is an old school SEO trick that works! You can put your keyword anywhere AFTER the "=" sign - Google will ignore it After each "<", ">" or "\" character, place a space before and/or after the next one (e.g., write "Widgets")
Title Tag Length: 1-3 Keywords | 0-1 Description
How To Build Your Own URL Shortening Service Using App Engine FREE LESSON [PART 2]
In this second part I'll show you how to build your own custom front end web application which sits on top of your existing shortening system. This
Top Blog Posts
- FOCUS ON YOURSELF NOT OTHERS - Best Motivational Speech 2021 4 months ago
- How To Build Your URL Short System (Premium URL Shortening Setup) 3 months ago
- British English Slang [Advanced Pronunciation Practice] - Reductions & Contractions 3 months ago
- Learn HTML in 12 Minutes 2 months ago
- Improve Your Problem Solving Skills 4 months ago