A blog system based on plain-files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.7 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Python Flask Blog
  2. This is a simple blog based on Pythons Flask framework.
  3. ## Features/To-Dos
  4. - [x] Infinite-scroll blog page
  5. - [x] Archive page
  6. - [_] Headers and dates
  7. - [x] RSS feed
  8. - [_] Navigation: Header, Footer
  9. - [_] CSS dark-theme
  10. - [_] CSS light-theme
  11. ## Usage
  12. ### Create entries
  13. Blog entries are managed by plain html files in the `templates/entry/` directory.
  14. The first line of each document is reserved as the title of the document.
  15. You have to specify the filetype by extension.
  16. Currently supported filetypes are:
  17. - HTML (.html)
  18. - Markdown (.md)
  19. ## Deployment
  20. ### PIP/Python
  21. - `git clone https://github.com/tiyn/flaskblog`
  22. - `cd flaskblog/src`
  23. - `pip3install -r requirements.txt` - install depenencies
  24. - run `python app.py`
  25. - blog is available on port 5000
  26. ### Docker
  27. #### Volumes
  28. Set the following volumes with the -v tag.
  29. | Volume-Name | Container mount | Description |
  30. |-------------|----------------------|-----------------------------------------------------------------------|
  31. | css | /blog/src/static/css | Directory for css files |
  32. | html | /blog/src/templates | Directory for templates and html documents (contains entry directory) |
  33. #### Ports
  34. Set the following ports with the -p tag.
  35. | Container-Port | Recommended outside port | Protocol | Description |
  36. |----------------|--------------------------|----------|-------------|
  37. | 5000 | 80 | TCP | HTTP port |
  38. #### Example run-command
  39. `docker run --name blog --restart unless-stopped -v css:/blog/src/static/css -v html:/blog/src/templates -p 80:5000 -d tiynger/flaskblog`