Projects narumi Lolimod Files
ctrl k
.onedev-buildspec.yml honcho fix(scrape user): only show first result of each scrape 2 years ago
.vscode Evert Elias Andonov docs: readme setup instructions 1 year ago
client なるみ Merge branch 'looking-for-a-new-adventure' into feature/favorites 8 months ago
configs Evert Elias Andonov docs: readme setup instructions 1 year ago
development honcho chore: misc cleanup and pruning 2 years ago
docker honcho chore(ci): fix hotreload mount 11 months ago
docs Evert Elias Andonov docs: readme setup instructions 1 year ago
migrations なるみ feat: Scrape/Posts favorites, and some minor html fixes 9 months ago
resources honcho index on fixing: 0add93c misc: we can fix her 2 years ago
src honcho refactor: get_artist_posts 8 months ago
.dockerignore honcho fix(ci): docker permissions (again) 2 years ago
.editorconfig honcho index on fixing: 0add93c misc: we can fix her 2 years ago
.flake8 honcho feat: importers configuration/page and frontend rework 2 years ago
.gitignore honcho fix: favorites caching 1 year ago
.pre-commit-config.yaml honcho chore: fix home page 1 year ago
LICENSE honcho index on fixing: 0add93c misc: we can fix her 2 years ago
Nekohouse.sublime-project honcho index on fixing: 0add93c misc: we can fix her 2 years ago
README.md Evert Elias Andonov docs: readme setup instructions 1 year ago
config.example.json honcho chore: add a default importer to the example config... also add some documentation concerning importer fields 11 months ago
daemon.py honcho fix(dev): stop silencing webpack output in devmode 11 months ago
generate_tusker_config.py honcho fix: erroneous migrations 2 years ago
generate_uwsgi_config.py honcho index on fixing: 0add93c misc: we can fix her 2 years 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 9 months ago
server.py honcho chore: make maximum upload size configurable 1 year ago
setup.py honcho index on fixing: 0add93c misc: we can fix her 2 years 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.

Page is in error, reload to recover