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.

55 lines
1.6 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. ## Usage
  4. ### Create entries
  5. Blog entries are managed by plain html files in the `templates/entry/` directory.
  6. The first line of each document is reserved as the title of the document.
  7. You have to specify the filetype by extension.
  8. Currently supported filetypes are:
  9. - HTML (.html)
  10. - Markdown (.md)
  11. ## To-Do
  12. - CSS switch with (Environment) Variable
  13. - Light Theme
  14. - Dark Theme
  15. - More date info in archive
  16. ## Deployment
  17. ### PIP/Python
  18. - `git clone https://github.com/tiyn/flaskblog`
  19. - `cd flaskblog/src`
  20. - `pip3install -r requirements.txt` - install depenencies
  21. - run `python app.py`
  22. - blog is available on port 5000
  23. ### Docker
  24. #### Volumes
  25. Set the following volumes with the -v tag.
  26. | Volume-Name | Container mount | Description |
  27. |-------------|----------------------|-----------------------------------------------------------------------|
  28. | css | /blog/src/static/css | Directory for css files |
  29. | html | /blog/src/templates | Directory for templates and html documents (contains entry directory) |
  30. #### Ports
  31. Set the following ports with the -p tag.
  32. | Container-Port | Recommended outside port | Protocol | Description |
  33. |----------------|--------------------------|----------|-------------|
  34. | 5000 | 80 | TCP | HTTP port |
  35. #### Example run-command
  36. `docker run --name blog --restart unless-stopped -v css:/blog/src/static/css -v html:/blog/src/templates -p 80:5000 -d tiynger/flaskblog`