A year to my personal portfolio
Published: 2022-11-20 06:46:35


![A-year-to-supunsathsara.com](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z8zoagqidzcb0b3l38sp.png)

𝓐 𝓨𝓮𝓪𝓻 𝓼𝓲𝓷𝓬𝓮,
It’s been a year since I deployed my portfolio website. And now when I look back, I really came a long way since then. TBH the design is not mine cuz I suck at UI designing and at the time I didn’t even fully understand JavaScript (funny enough only knew about Js algorithms back then).  
Initially the site used php as it’s backend language & I hosted the site on Infinityfree cuz at the time it was the only hosting provider I could find that was free to host a php site. But with Infinityfree, one of the biggest problems I was faced was they didn’t support php’s native mail functionality. So, either I had to drop the contact form or find an alternative way.  After a lot of googling, I found out a way to send emails with custom smtp servers. Since I didn’t want to pay for a smtp service I managed to setup emails using google ’s smtp server with my personal Gmail. 

Even though it worked ok, website’s speed was so slow. After several months, I found out about Cloudflare pages, and I wanted to migrate my site to them. But the problem was they only supports static sites, so that means I couldn’t use php. So, I was able to redesign the site to use only client side languages except for the contact form.  However, by now I had some knowledge about Js and rest APIs, So I did a little bit of research and found Mailgun email service. They gave the ability to send emails with their rest API but there was only a 3months trial other wise I had to pay a monthly subscription. However, I signed up for the trial and setup my email API endpoints on Cloudflare workers.

With that on 2022.04.24 I deployed my site with Cloudflare pages and workers & website speed improved a lot. 
But still I wanted a permanent solution for the email problem. And that’s when I found out about SendGrid. They offered a trial for email solutions with 100 emails per day and that was more than enough for me. However, I had to contact them privately and explain how I’m going to use their service, to get my free plan activated because they were concerned about using their resources for spam emails.

On 2022.06.17, I decided to “GoFullStack” & add an API to it. It wasn’t necessary, but I wanted to add a backend to my site. So, with the help of Deta, I added a NodeJS back-end and created an API to fetch the certificate details.

Fast forward to present, now it is a fully functional full stack website with, a 100% SEO score and milliseconds of response time.
I can send and receive unlimited emails and have unlimited email addresses under my domain with 0$ cost.

Also there is a status site that shows the uptime status of my websites ([status.supunsathsara.com](https://status.supunsathsara.com)) with a built-in real time notification system, means if site goes down there are telegram bots, discord bots to notify me and also there is a twitter bot that gonna send out a tweet about the incident.  (Currently I’m working on a WhatsApp notification system & will deploy it soon)

Finally what I’m most proud of is the fact that for all these things only cost me like $10 per year. Also, that is only for the domain and otherwise all the operations are free. But nevertheless, I believe I can proudly say it is better than most of the sites out there that cost a fortune to maintain.
So here’s to another year 🍻
[https://supunsathsara.com](https://supunsathsara.com)

: ८Һυ੮੮૯