ctrl k
.onedev-buildspec.yml honcho fix(scrape user): only show first result of each scrape 1 year ago
.vscode Evert Elias Andonov docs: readme setup instructions 12 months ago
client honcho Merge branch 'looking-for-a-new-adventure' of ssh://code.nekohouse.su:6611/Nekomod into looking-for-a-new-adventure 4 months ago
configs Evert Elias Andonov docs: readme setup instructions 12 months ago
development honcho chore: misc cleanup and pruning 1 year ago
docker honcho chore(ci): fix hotreload mount 8 months ago
docs Evert Elias Andonov docs: readme setup instructions 12 months ago
migrations なるみ feat: Scrape/Posts favorites, and some minor html fixes 6 months ago
resources honcho index on fixing: 0add93c misc: we can fix her 1 year ago
src honcho chore: temporarily remove cache from posts 3 months ago
.dockerignore honcho fix(ci): docker permissions (again) 1 year ago
.editorconfig honcho index on fixing: 0add93c misc: we can fix her 1 year ago
.flake8 honcho feat: importers configuration/page and frontend rework 1 year ago
.gitignore honcho fix: favorites caching 10 months ago
.pre-commit-config.yaml honcho chore: fix home page 1 year ago
LICENSE honcho index on fixing: 0add93c misc: we can fix her 1 year ago
Nekohouse.sublime-project honcho index on fixing: 0add93c misc: we can fix her 1 year ago
README.md Evert Elias Andonov docs: readme setup instructions 12 months ago
config.example.json honcho chore: add a default importer to the example config... also add some documentation concerning importer fields 8 months ago
daemon.py honcho fix(dev): stop silencing webpack output in devmode 8 months ago
generate_tusker_config.py honcho fix: erroneous migrations 1 year ago
generate_uwsgi_config.py honcho index on fixing: 0add93c misc: we can fix her 1 year ago
requirements.txt honcho fix(requirements): ensure flask integration for sentry is installed, also upgrade some things 1 year ago
schema.sql なるみ feat: Scrape/Posts favorites, and some minor html fixes 6 months ago
server.py honcho chore: make maximum upload size configurable 11 months ago
setup.py honcho index on fixing: 0add93c misc: we can fix her 1 year ago
README.md

Nekomod

Nekomod is the frontend project currently in use by Nekohouse, a gallery project aiming to eventually ease the backup and sharing of artists' works across the Internet using automation. Based on Kemono3 code as it was at around February 2023. Very WIP.

Table of contents

Setup

git clone https://code.nekohouse.su/Nekomod Nekomod
cd Nekomod

Quick Start

Docker is the recommended method of running Nekomod. Podman should also work with similar commands.

  1. Set up config:

    # you might want to open up the file and configure
    # see `src/config.py` for all options
    cp --interactive config.example.json config.docker.json
    
  2. Start the containers (make sure you have docker installed).

    cd docker
    docker compose build
    docker compose up --detach
    

    You can also pull from the official registry instead of building from scratch if you've been given auth.

Manual

Requires Python 3.9 and Node v18, as well as running Redis and PostgreSQL instances. Your PostgreSQL server also needs Pgroonga and the Hamming distance index extension installed.

  1. Set up config:

    cp --interactive config.example.json config.json
    

    You definitely want to go in plug in the correct service addresses here.

  2. Install required dependencies:

    sudo apt update
    sudo apt install python3.9 python3.9-dev python3.9-distutils
    
  3. Create a virtual environment (requires virtualenv installed):

    pip install virtualenv
    virtualenv --python 3.9 venv
    
  4. Activate the virtual environment:

    source venv/bin/activate
    

    On Windows the path is venv\Scripts\activate.
    You might need to use a different script if you use an exotic shell. For example, fish would need source venv/bin/activate.fish

  5. Install python packages:

    pip install --requirement requirements.txt
    
  6. Manually start up Nekomod:

    python3 daemon.py
    

    May take a bit to startup on first run.

  7. Open http://localhost:5000/ in the browser.

Frequently Asked Questions

Are Kemono databases compatible with Nekomod?

No. For various reasons, the schema is different.

How do I import from a database dump?

  1. Retrieve a database dump.
  2. Run this command in the folder of said dump:
    cat db-filename.dump | gunzip | docker exec --interactive nekohouse-db psql --username=nekohouse nekohouse-db
    

Licensed under GNU Affero General Public License. tldr.

Please wait...
Page is in error, reload to recover