Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

BeastImran/personal-website

Repository files navigation

Quick links

This is my first live personal website

It's been a great journey developing this website as i got chance to learn new things like CSP (content security policy) headers, meta tags, XSS (cross site scripting) security stuffs, iframe attacks, compression techniques, various web performance metrics and techniques to improve the performance, handling hot linking situations, ranking in search resulta, various schemas like schema.org, OG, sitemaps etc.

Technologies used

These technologies were used:

[F]

  1. HTML, CSS (obviously 🤷🏻‍♂️)
  2. Bootstrap
    • powering the bare bone structure of the website
  3. Javascript
    • Making things functional like share button, menu buttons etc

[B]

  1. CPython3.8
    • humans know and speaks it 😉 .
  2. Sanic web framework
    • Asynchronous web framework.
    • Written to go fast ⚡, as they say.
  3. aiosqlite
    • asynchronous sqlite querying.
  4. Jinja2
    • A really handy html template engine
  5. Ubuntu 20.04
    • The usual

Notes

When this website is configured to run to it's full potential (by setting the workers to max a processor allows), it is capable of handling many thousands of requests per second.

I have an Intel 9th gen i7 9750H 6 core 12 logical cores processor which allows a max of 12 workers. Running the website locally with workers set to 12, it was able to handle approximately 4500+ requests per second 🤯. Shocking right! All thanks to the Sanic web framework. My server allows only one worker (single core), so, it's capable of handling approximately 100 requests per second.

Disclaimer

Template of this website was borrowed from here. I have modified most of it to my taste and needs, made it functional, really usable, improving its performancce by 40 to 60%, reducing size and keeping the overall visual structure same. Template comes under CC BY 3.0 (Creative Commons Attribution) License.