Skip to content

WeepingDogel/tinygallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

An open-source project providing the drawing lovers a free and simple gallery service.

And this project is on the way!

Technology Stack

Python Flask Jinja OpenCV CSS3 HTML5 JavaScript SQLite

Dependencies

  • certifi==2022.12.7
  • charset-normalizer==2.1.1
  • click==8.1.3
  • docopt==0.6.2
  • Flask==2.2.2
  • idna==3.4
  • itsdangerous==2.1.2
  • Jinja2==3.1.2
  • MarkupSafe==2.1.1
  • numpy==1.24.1
  • opencv-python==4.7.0.68
  • pipreqs==0.4.11
  • requests==2.28.1
  • urllib3==1.26.13
  • waitress==2.1.2
  • Werkzeug==2.2.2
  • yarg==0.1.9

Mannual Installation

Download the source

wget https://github.com/WeepingDogel/tinygallery/archive/refs/tags/<version>.tar.gz

Unpack

tar xzvf tinygallery-<version>.tar.gz

Change to installation path.

cd [tinygallery-<version>]

Create Virutal Environment.

python -m venv venv

Active Virtual environment

. venv/bin/activate

Install Dependencies.

pip3 install -r ./requirements.txt

Initialization database

flask --app flaskr init-db

Start WSGI server

waitress-serve --host 127.0.0.1 --call flaskr:create_app

Proxy WSGI server with http server for example :nginx

  • add some config to /etc/nginx/nginx.conf
server {
    listen 17779;
    listen [::]:17779;
    server_name TinyGallery;
        
    location / {
        proxy_pass http://127.0.0.1:8080/;
    }
}
  • if you want to use the server as ipV6only:
server {
    listen 17779;
    listen [::]:17779 ipv6only=on;
    server_name TinyGallery;
        
    location / {
        proxy_pass http://127.0.0.1:8080/;
    }
}

Finally, start nginx

sudo systemctl start nginx

Enjoy~!

Quick Start By Docker

1. Pull Image:

sudo docker pull weepingdogel/tinygallery:latest

Tips:

You can also pull the exact version:

sudo docker pull weepingdogel/tinygallery:v0.5.1

2. Run a container from image

sudo docker run -p 17779:80 -d weepingdogel/tinygallery:latest

3. Enjoy~!

By Dockerfile

1. Download the file from the releases

wget https://github.com/WeepingDogel/tinygallery/releases/download/{ version }/TinyGallery-Docker-{ version }.tar.gz

For example, v0.5.1:

wget https://github.com/WeepingDogel/tinygallery/releases/download/v0.5.1/TinyGallery-Docker-0.5.1.tar.gz

2. Unpack the file

tar xzvf TinyGallery-Docker-0.5.1.tar.gz

3. Build the image

sudo docker build -t weepingdogel/tinygallery:tagname .

4. Run a container from image

sudo docker run -p 17779:80 -d weepingdogel/tinygallery:taggname 

5. Enjoy~

About

An open-source project providing the drawing lovers a free and simple gallery service. Old Edition.

Topics

Resources

License

Stars

Watchers

Forks