Cubari.moe
An image proxy powered by the Cubari reader.
Prerequisites
- git
- python 3.6.5+
- pip
- virtualenv
Install
- Create a venv for cubarimoe in your home directory.
virtualenv ~/cubarimoe
- Clone cubarimoe's source code into the venv.
git clone https://github.com/appu1232/cubarimoe ~/cubarimoe/app
- Activate the venv.
cd ~/cubarimoe/app && source ../bin/activate
- Install cubarimoe's dependencies.
pip3 install -r requirements.txt
- 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
- Generate the default assets for cubarimoe.
python3 init.py
- 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