Welcome to my personal website's repository. Made with Python Flask and WindiCSS (compiler for TailwindCSS).
- WindiCSS support. WindiCSS is a compiler for TailwindCSS which comes with additional features and faster load times.
- Dark & Light theme support. Keep your eyes safe with dark theme, switch with a button on the navbar, save theme preference on your device
- Responsive. Comfortably view the site from desktops, tablets and mobile devices.
- Dynamic & Static support. Run with a Flask server as a dynamic website or generate a static version (for Netlify/Vercel).
- No HTML edit needed. Get your website ready to use by configuring everything you need in one single file.
- Discord presence support. Live display your Spotify activity on your website directly.
You can view a public version of my site at eri.gg.
- Python v3.5 - v3.8 (dependencies may break with older versions)
⚠️ WARNING: Versions newer than Python 3.8 will get an encounter a known "ImmutableMapping" deprecation bug that will prevent you from starting the app. Ref here. See this GitHub issue for workarounds.
- Flask 1.0.2 or higher (backend of the site)
- Frozen_Flask 0.15 (to render a static version of the site)
- Requests 2.23.0 (for server-side API requests)
- Open a terminal/shell and clone this repository with
git clone https://github.com/eri/Website.git
and then docd Website
- Install dependencies with the
pip3 install -r requirements.txt
command - Go to the
/src
folder and edit theconstants.py
file with your own settings
Note: If you would like to get a static version of your site, keep
ssr
asTrue
.If you would like to run a Flask server, change
ssr
asFalse
. In that case, you can set a host (IP) and a port where the website will be run. It's recommended to keephost
as0.0.0.0
if the address is pointing a local address (likelocalhost
or127.0.0.1
). You are free to change theport
as you wish.
- Run the
python3 run.py
command on your terminal/shell to start the website - If
ssr
inconstants.py
isFalse
, a static version of the site has been generated in a new folder named/build
.
You can host this static version on a web server.
I recommend you to deploy your site by using services like Netlify or Vercel for FREE.
- If
ssr
inconstants.py
isTrue
, your site will be available at thehost:port
that you specified. (https://localhost:8000/ by default)
- Add a blog view to display your Medium stories
- Localization support by using Flask Babel