mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
removing unneeded data and adding badges
This commit is contained in:
parent
e465cebbd4
commit
f24ae2b107
1 changed files with 19 additions and 22 deletions
41
README.md
41
README.md
|
@ -2,36 +2,40 @@ tiny_personal_website
|
|||
=====================
|
||||
|
||||
<img src="./example.png" alt="screenshot of jessebot.work which serves as an example website. It features a picture of Jesse a person with blue hair that is almost 30. a blurb about them that you can read in config/config.yaml and link icons to github, gitlab, and linkedin." style="width: 40%;" align="left">
|
||||
|
||||
[](https://github.com/Naereen/Strapdown.js/tags/)
|
||||
|
||||
This is a small Python based personal website aimed first and foremost at being a resume.
|
||||
I originally wrote this 7 or 8 years ago, and recently absolutely borked my
|
||||
newer website, resulting in me quickly resurrecting this thing in about a day
|
||||
and a half. This one does the same thing, but better, and faster, with less js.
|
||||
|
||||
Feel free to take anything you need :) But keep it open source. [You gotta.](./LICENSE)
|
||||
Feel free to take anything you need :) But keep it open source.
|
||||
|
||||
Under the Hood
|
||||
--------------
|
||||
* Bootstrap v5 - frontend js/css
|
||||
* Flask - backend routing
|
||||
* Gunicorn - serving website
|
||||
* YAML - config file
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
* The Open Source Community <3 - answers to all your questions for free
|
||||
[](http://perso.crans.org/besson/LICENSE.html)
|
||||
|
||||
|
||||
## Dev and Testing
|
||||
## Getting Started
|
||||
|
||||
1. Clone this github repo into your desired webroot.
|
||||
Clone this github repo into your desired webroot, and install dependencies:
|
||||
`pip3.10 install -r requirements.txt`
|
||||
|
||||
2. Install missing libraries if any: `pip3.10 install -r requirements.txt`
|
||||
You can configure everything (e.g. website title, your photo, quote, etc)
|
||||
by editing `config.yaml` and replacing all the Jesse data with your own.
|
||||
|
||||
3. You can configure everything (e.g. website title, your photo, quote, etc)
|
||||
by editing `config.yaml` and replacing all the Jesse data with your own.
|
||||
All changes to HTML, CSS, and Python, or your core YAML will require a
|
||||
restart of gunicorn or a rebuild of the docker container.
|
||||
|
||||
5. All changes to HTML, CSS, and Python, or your core YAML will require a
|
||||
restart of gunicorn or a rebuild of the docker container.
|
||||
### Testing
|
||||
|
||||
6. for docker, you can just do:
|
||||
For docker, you can just do:
|
||||
```bash
|
||||
docker build . -t <name of tag you want>
|
||||
|
||||
|
@ -40,7 +44,7 @@ Under the Hood
|
|||
docker run --rm -p 8000:8080 <name of the tag you used>
|
||||
```
|
||||
|
||||
For testing locally, _without_ a docker rebuild:
|
||||
For testing locally with gunicorn, _without_ a docker rebuild:
|
||||
```bash
|
||||
gunicorn app:app
|
||||
```
|
||||
|
@ -58,10 +62,3 @@ gunicorn --worker-tmp-dir /dev/shm app:app
|
|||
```
|
||||
|
||||
And the container port of note is port 8080.
|
||||
|
||||
|
||||
## Frontend Dev Notes
|
||||
I found [this guide](https://stackoverflow.com/questions/68558955/bootstrap-centering-container-in-the-middle-of-the-page)
|
||||
on vertically centering items and it helped a lot. Basically both the body and
|
||||
base container you have need to be h-100 and vh-100 and for extra security,
|
||||
add `min-height: 100vh;` to the CSS for the body.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue