Skip to content

nsosnsos/hallelujah

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hallelujah

Flask project based on python 3.10.6

Software dependency for deploy

  • nginx 1.18.0
  • redis-server 6.0.16
  • mariadb-server 10.6.12(optional, mysql/sqlite are also supported)

Front-end component dependency

  1. [email protected]
  2. [email protected]
  3. [email protected]
  4. [email protected]
  5. [email protected]
  6. [email protected]
  7. [email protected]
  8. [email protected]
  9. gridjs
  10. simplemde

Features

  1. mark-down article, including code syntax highlight.
  2. photo gallery with thumbnail, auto aligned to fit window width.
  3. file browser, support file multiple upload by dropping or selecting.
  4. favorite hyperlink with categories.
  5. redis session support for multiple workers.
  6. easy to use by flasky script with command: init|debug|run|deploy|cron|test|clean|addusr|delusr|backup|restore.
  7. log every view url access with real ip address, and authentication information.

About

  • database suport

    • mysql/mariadb/sqlite
  • Usage

    • Initialization, including database creation and add administrator.
    bash flasky.sh init --mail_address EMAIL_ADDRESS --mail_password EMAIL_PASSWORD

    You could also manually create, migrate and upgrade database, by using flask migration utility.

    flask db init
    flask db migrate
    flask db upgrade
    • Debug application.
    bash flasky.sh debug
    • Run application.
    bash flasky.sh run
    • Deploy application.
    bash flasky.sh deploy
    • Add cron job for backup and synchronization.
    bash flasky.sh cron
    • Test application.
    bash flasky.sh test
    • Clean on the repository.
    bash flasky.sh clean
    • Add a user.
    bash flasky.sh addusr --username USERNAME --password PASSWORD --mail_address [email protected]
    • Delete a user.
    bash flasky.sh delusr --username USERNAME
    • Backup database.
    bash flasky.sh backup
    • Restore database.
    bash flasky.sh restore