Browse Source

Обновление в связи с переносом с github

Andrew Khozhempo 2 years ago
parent
commit
58589b58b9
4 changed files with 81 additions and 27 deletions
  1. 4 0
      .gitignore
  2. 20 17
      LICENSE
  3. 22 0
      README.en.md
  4. 35 10
      README.md

+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+.idea/*.*
+.idea/vcs.xml
+.idea/modules.xml
+.idea/letsencrypt_certbot_with_timeweb_dns.iml 

+ 20 - 17
LICENSE

@@ -1,21 +1,24 @@
-MIT License
+This is free and unencumbered software released into the public domain.
 
-Copyright (c) 2021 Andrew Khozhempo
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+For more information, please refer to <https://unlicense.org>

+ 22 - 0
README.en.md

@@ -0,0 +1,22 @@
+# photo_cache_service
+Webserver for images and photos with cache of thumbnails and images.
+
+Simple and very fast webserver, which helps you to browse your photoalbums. For comfort work it creates thumbnails and small copies of all images.
+
+INSTALLATION
+------------
+
+Can be started from windows or ubuntu. Make sure you download from ./build correct version of the bin file and config.json.
+Necessary folder with images and for cache can be set in config.json
+
+
+REQUIREMENTS
+------------
+
+The minimum requirement by photo_cache_service is that you have Web server. Thats all.
+If you want to make some changes, you'd better to know that web part are located in ./i folder and implemented into binary with go-bindata (https://github.com/jteeuwen/go-bindata) tool.
+
+QUICK START
+-----------
+
+Photo_cache_service comes with a command line tool called "photo_cache_service" that can run webserver on port :9090 and start creating thumbnails.

+ 35 - 10
README.md

@@ -1,22 +1,47 @@
 # photo_cache_service
-Webserver for images and photos with cache of thumbnails and images.
+Веб сервер для изображений и фотографий с кэшем миниатрюр и предпросмотром.
 
-Simple and very fast webserver, which helps you to browse your photoalbums. For comfort work it creates thumbnails and small copies of all images.
+*Read this in other languages: [English](README.en.md), [Русский](README.md).*
 
-INSTALLATION
+Простой и очень быстрый веб вебсервер, для комфортного просмотра фотоальбомов. Создает иконки и уменьшенные копии изображений в формате для предпросмотра, что ускоряет навигацию по папкам.
+
+УСТАНОВКА
 ------------
 
-Can be started from windows or ubuntu. Make sure you download from ./build correct version of the bin file and config.json.
-Necessary folder with images and for cache can be set in config.json
+Запускается под windows или ubuntu. Скачайте необходимую версия из папки ./build и не забудьте файл config.json.
+Папка с фотографиями и для кэша задается config.json
 
 
-REQUIREMENTS
+СИСТЕМНЫЕ ТРЕБОВАНИЯ
 ------------
 
-The minimum requirement by photo_cache_service is that you have Web server. Thats all.
-If you want to make some changes, you'd better to know that web part are located in ./i folder and implemented into binary with go-bindata (https://github.com/jteeuwen/go-bindata) tool.
+Минимальное требование для photo_cache_service это наличие вебсервера. И все.
+Если вы захотите внести какие-либо изменения, то веб часть хранится в папке ./i и при компиляции собирается вместе с программой в один исполняемый файл. Для этого используется утилита go-bindata (https://github.com/jteeuwen/go-bindata).
+
+БЫСТРЫЙ ЗАПУСК
+-----------
+
+Запускаете в командной строке "photo_cache_service" и после через бразуер обращаетесь по адресу http://localhost:9090
+
 
-QUICK START
+TODO
 -----------
 
-Photo_cache_service comes with a command line tool called "photo_cache_service" that can run webserver on port :9090 and start creating thumbnails.
+Дальнейшие планы:
+- [ ] web-сервер, возвращающий thumb изображение
+	- [ ] проверка на наличие в кэше
+		- [ ] возврат thumb
+		- [ ] возврат заготовки с информирование о создании thumb
+			- [ ] внесение задания в начало очереди
+		
+- [ ] создание индекса
+	- [ ] проход по дереву
+	- [ ] актуализация кэша
+		- [ ] удаление уже удаленных картинок
+		- [ ] внесение в очередь на создание thumb
+		
+- [ ] создание thumb
+	- [ ] сортировка очереди
+	- [ ] проверка отсутствия в кэше
+	- [ ] создание thumb
+	- [ ] удаление задания из очереди