Skip to content

Tools and web for the public access tv-channel Frikanalen

License

Notifications You must be signed in to change notification settings

petterreinholdtsen/frikanalen

This branch is 2 commits ahead of, 1446 commits behind Frikanalen/frikanalen:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 19, 2019
Jan 6, 2019
Dec 3, 2018
Jan 18, 2019
Jan 19, 2019
Jan 19, 2019
Nov 13, 2018
Jan 18, 2019
Mar 4, 2013
Jan 1, 2019
Jan 19, 2019
Jan 3, 2019
Apr 18, 2015
Jan 6, 2019
Jan 6, 2019

Repository files navigation

Frikanalen

Tools and web for the Norwegian public access TV channel Frikanalen.

GitHub page | Project mailing list

Creating a local development environment

Let's start by installing some of the dependencies by running the install-debian-deps.sh.

Create virtual env:

$ python3 -m venv env

Activate your new python environment:

$ source env/bin/activate
(env)$

Use pip to install the rest of the requirements:

(env)$ pip install -r requirements-dev.txt

Open fkbeta/settings.py in your editor and edit paths and database-settings. You should set SECRET_KEY to a random string.

Initialize the database:

(env)$ cd fkbeta
(env)$ ./manage.py migrate
    ...

Load some default data (fixtures) into the database:

(env)$ ./manage.py loaddata frikanalen
    ...

Create a new admin user:

(env)$ ./manage.py createsuperuser

Start the webserver:

(env)$ ./manage.py runserver

Point your browser to http://127.0.0.1:8000/admin and log in.

Docker

If you want to use docker, the following commands should set you up:

$ docker build -t "frikanalen" .
$ docker run -p 8000:8000 frikanalen

Alternatively you can pull down a image from Docker Hub:

$ docker run -p 8000:8000 frikanalen/frikanalen

Deploying

The new way to deploy is a githook. Set up the remotes:

git remote add prod fkweb@frikanalen-prod.nuug.no:git/
git remote add dev fkweb@frikanalen-dev.nuug.no:git/

Now you can easily push your changes:

git push dev master:master

For more advanced things you'd want to check our infrastructure Ansible setup.

License

All under the GNU LGPL license, see the file COPYING for more details.

About

Tools and web for the public access tv-channel Frikanalen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.9%
  • Python 24.5%
  • HTML 8.1%
  • Shell 1.2%
  • CSS 0.1%
  • Makefile 0.1%
  • Dockerfile 0.1%