Giter Site home page Giter Site logo

bonome / rhinoradiocms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hackstub/rhinoradiocms

0.0 2.0 0.0 2.28 MB

Experimental webradio CMS based on Flask micro-framework for Radio Rhino (Strasbourg).

Python 55.19% JavaScript 10.96% CSS 15.18% HTML 17.96% Mako 0.53% Shell 0.19%

rhinoradiocms's Introduction

Rhino Radio CMS

Experimental webradio CMS based on Flask micro-framework designed for Radio Rhino with YunoHost (not absolutely required but necessary to protect admin).

Install

# On Debian/Ubuntu/Mint
sudo apt-get install python-virtualenv

virtualenv -p python3 venv
source venv/bin/activate

# PostgreSQL and GIS (geographic db) + SASS
sudo apt install python3-dev postgresql-9.4 postgresql-server-dev-9.4 postgis
gem install sass

pip3 install -r requirements.txt

# Start PostgreSQL
systemctl start postgresql

# if needed :
#createlang plpgsql gis

sudo su postgres
psql
>>> CREATE DATABASE rhino;
>>> \c rhino;
>>> CREATE EXTENSION postgis;
>>> GRANT ALL ON DATABASE rhino TO "user";
>>> \q

# Path a few stuff..
mkdir app/static/podcasts

# Replace 'xrange' by 'range' in lorem_ipsum :
vim venv/lib/python*/site-packages/forgery_py/forgery/lorem_ipsum.py

Init the base

# (Re-)initialize database
python3 manage.py nuke

# Feed database with random placeholder values
python3 manage.py lorem

Develop

# Run dev server
python3 manage.py runserver

Admin

Admin interface on : http://domain.tld/admin

Deployment with Gunicorn

# Install Gunicorn
pip3 install Gunicorn

More to come.

Uncomment '#scheme="https"' in views.py

Add environment variables to /lib/systemd/system : AIRTIME_API_KEY STREAM_URL SECRET_KEY FLASK_CONFIG='production'

If your podcast files are on a distant machine : set an autofs + sshfs on app/static/podcasts :

sshfs user@distant-ip:/podcasts/dir/

Prod upgrade

git pull
git merge origin master
sass app/static/scss/style.scss:app/static/css/style.css --style compressed
service rhinosite restart

Doc

Eeeeeeeh... Soon™.

# Install Sphinx
pip3 install Sphinx

rhinoradiocms's People

Contributors

jeremiewcz avatar axolotle avatar alexaubin avatar

Watchers

James Cloos avatar Julien Beugnot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.