Skip to content

asusguy94/Porn-Organizer

Repository files navigation

Porn NextJS

Note about thumbnails

The image server is currently broken, I recommend not generating cover-images, deleting all files in images/videos, and running UPDATE VIDEO SET COVER = NULL on the database to prevent issues. I have disabled the generation logic from the browser, but if you still want to do it, you can clone this repo and revert the last change. I've created a simple upscaling algorithm, so cover-images should now work, and I re-enabled the genaration logic. Tiny images will hovever not look quite as good as before, and if the server ever is updated fully, I will change it back.

Requirements

  1. Modern Web Browser
  2. Browser resolution set to 1920x1080 (sotf-requirement)
    • This should not be an issue any more
  3. Yarn package manger
  4. Database (preferable mariaDB)
    • host
    • username
    • password
    • database
  5. Docker application (eg. Docker Desktop)

Installation

Any setting ending with * is required

List of settings

Keyword Description
DATABASE_URL* The database URL for your chosen database
NEXT_PUBLIC_DB_ADMIN The url for the DB-link in the navbar (default=/db)
NEXT_PUBLIC_THUMBNAILS Weather generated thumbnails should be used (default=false)
NEXT_PUBLIC_USER_THUMB Weather window should be closed after a thumbnail has been created (default=false)
THUMBNAIL_RES The height used for thumbnails (default=290)
THEPORNDB_API The API-KEY used, for getting data
PORT* Only required for docker. The port used for the application (default=3000)
PATH* Only docker. The path to map to app/media (this directory should contain a videos-directory)

With Docker

Map the required path, port, and variables, see the table above

Without Docker

Add a videos-directory inside a media-directory in the root-directory, and place all your videos within the videos-directory

sample.env can be found in the root-directory, just rename it to .env, and change the data of the file.

Change any required/optional variables see the table above

Run the following command to generate your database structure

   yarn prisma db push

Starting the app

Starting the app with docker

Start the docker container

Starting the app without docker

Run the following command

yarn build && yarn start

Features

Status of functionality can be found at features.md

Recommendations

Screen resolution

Resolution Attributes / Locations / Categories
1080p 0-18
1440p 19-37
2160p 38+

Notes about incompatible packages