Skip to content

kheina-com/backend

Folders and files

NameName
Last commit message
Last commit date
Jan 14, 2025
Nov 25, 2024
Feb 15, 2025
Oct 4, 2024
Feb 15, 2025
Feb 15, 2025
Jul 6, 2024
Feb 15, 2025
Aug 7, 2024
Feb 15, 2025
Dec 28, 2024
Dec 14, 2024
Feb 15, 2025
Feb 15, 2025
Feb 15, 2025
Feb 15, 2025
Feb 15, 2025
Jul 14, 2024
Feb 15, 2025
Jun 14, 2024
Oct 4, 2024
Feb 15, 2025
Feb 15, 2025
Feb 15, 2025
Feb 15, 2025
Jul 14, 2024
Nov 21, 2024
Nov 21, 2024
Nov 21, 2024
Aug 7, 2024
Feb 15, 2025
Feb 15, 2025
Jul 23, 2024
Dec 28, 2024

Repository files navigation

Development

  1. install https://exiftool.org
    • Arch
       pacman -S perl-image-exiftool
      
    • Ubuntu
       apt install libimage-exiftool-perl
      
    • CentOS/RHEL
       yum install perl-Image-ExifTool
      
    • Others
      • idk figure it out
  2. startup docker environment
    % docker compose up -d
  3. setup python venv
    % ./venv.sh
    	...
    
    Done. run 'source ./.venv/bin/activate' to enter python virtual environment
  4. create credential files for above
    % source .venv/bin/activate
    (.venv) % python3 init.py gen-credentials
  5. init db and create defaults
    % source .venv/bin/activate
    (.venv) % python3 init.py db -u
    [Tue Jul  2 21:10:40 2024] INFO > connected to database.
    ==> exec: db/0/00-init.sql
    ==> exec: db/0/01-enums.sql
    (.venv) % python3 init.py icon
    (.venv) % python3 init.py admin
    [Tue Jul  2 21:11:17 2024] INFO > connected to database.
    [Tue Jul  2 21:11:17 2024] INFO > connected to database.
    ==> account: email='[email protected]' password='very-secure-password-123'
  6. setup minio server
    1. navigate to http://localhost:9090 and login using default credentials
    2. create a bucket named kheina-content with default settings
      • you must add an anonymous access rule to allow read access to bucket contents
    3. create an access key using the sample credentials
  7. run server within venv
    % source .venv/bin/activate
    (.venv) % fastapi dev server.py
  8. run deactivate to exit venv

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages