- Bonjour!
Hi, welcome in this new episode of Cloud in 5 Minutes.
I'm Frank Boucher, Microsoft Cloud advocate
and today, it's a little bit special episode
because I wanna share with you a project that I did
using Serverless to create a budget friendly URL shortener.
(speaking French)
(upbeat music)
I don't know for you but I'm always in the need
to share some links, some URLs
and it's way much easier to remember
a short link than a very long one.
There's already services that exist,
but you don't have your domain name that you would like.
So I decided for fun and to learn to create my own
and I did it with the community.
So I did build that tool
that I will be sharing, that project,
while I was streaming on Twitch.
So multiple times a week, I'm streaming on Twitch
and we built that.
So it's a project that will continue to evaluate
and this is my invite if you wanna join us
and have some fun, you're welcome.
So, the project is in Github.
So, on my Github, FBoucher/AzUrlShortener,
all the code is there.
And the beauty of it is...
It will deploy automatically.
So you click on this button here,
it will go in your Azure subscription.
And if you don't have one, there's a link just here
to create your own free subscription.
This will generate all the backend you need.
So Azure function and Azure storage tables.
Those are very budget friendly resources
and that's why I picked them.
They only consume when you're using it.
So just a few seconds and you're done.
So the backend is done as an API
and you do http call to communicate with it.
So if we go back in the Github repo,
there's multiple interface that are available.
Right now, there's only two,
but hopefully there will be more soon.
So, of course since it's kind of an API,
you could use Postman.
So here I put the description and the instruction
how to use Postman to generate or see your URL.
But I also create one very simple website,
that is named Admin Blazor Website.
I did it in Blazor.net again.
So this website is very simple, again, to deploy.
You only have one click button.
You click that, it will deploy the website
in your subscription with all the configurations.
All will be done.
Let me show it to you.
So here it is.
Like I said, it's a very minimalistic website,
but it's password protected so we have your user
and this will give you the opportunity
to see all the URL that you have already created
and you can create new ones by clicking this blue button.
It will ask you for the long URL and the vanity.
The vanity is the end of the URL.
So, if you don't specify anything,
the API, the system will provide one for you.
For example, here, 2w was generated.
Or you can pick one.
So test or project or docs.
I specify those.
There's no limit.
You do whatever you want but if you take something long,
then it's not the short URL anymore.
But that's up to you.
Where I need you is, since this is an open source project,
there's a part here that explain
how to create new interface.
So maybe you know Python or JavaScript
or .NET or I don't know,
and you would like to join the community,
well you're welcome and you have all the instruction
to provide and create a new template.
Just create a new branch and I'm accepting all PRs.
I hope you like this video and I hope
this project is useful for you.
If it is, please share, do a thumbs up, it's very useful.
And don't forget to subscribe.
Thank you for watching.
See you next time.
(upbeat music)