SuperStormer / cubarimoe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cubari.moe

An image proxy powered by the Cubari reader.

Testing Supported By
BrowserStack

Prerequisites

  • git
  • python 3.6.5+
  • pip
  • virtualenv

Install

  1. Create a venv for cubarimoe in your home directory.
virtualenv ~/cubarimoe
  1. Clone cubarimoe's source code into the venv.
git clone https://github.com/appu1232/cubarimoe ~/cubarimoe/app
  1. Activate the venv.
cd ~/cubarimoe/app && source ../bin/activate
  1. Install cubarimoe's dependencies.
pip3 install -r requirements.txt
  1. Change the value of the SECRET_KEY variable to a randomly generated string.
sed -i "s|\"o kawaii koto\"|\"$(openssl rand -base64 32)\"|" cubarimoe/settings/base.py
  1. Generate the default assets for cubarimoe.
python3 init.py
  1. Create an admin user for cubarimoe.
python3 manage.py createsuperuser

Start the server

  • python3 manage.py runserver - keep this console active

Now the site should be accessible on localhost:8000

Other info

Relevant URLs (as of now):

  • / - home page
  • /admin - admin view (login with created user above)
  • /admin_home - admin endpoint for clearing the site's cache

About

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 37.2%Language:Python 33.6%Language:CSS 20.5%Language:HTML 8.7%Language:Dockerfile 0.0%