Projects narumi Lolimod Files
.onedev-buildspec.yml Loading last commit info...
.vscode
client
configs
development
docker
docs
migrations
resources
src
.dockerignore
.editorconfig
.flake8
.gitignore
.pre-commit-config.yaml
LICENSE
Nekohouse.sublime-project
README.md
config.example.json
daemon.py
generate_tusker_config.py
generate_uwsgi_config.py
requirements.txt
schema.sql
server.py
setup.py
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