Website @ hackerspace-ntnu.no

License: MIT

Language: Python

Hackerspace Website

The code running beta.hackerspace-ntnu.no.

Getting started developing

Install all the requirements

Install pip3: apt-get install python3-pip

Install required packages for Pillow(Python Image Library): sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk

Install postgresql: sudo apt-get install python-pip python-dev libpq-dev postgresql postgresql-contrib

Download the project

Clone the project: git clone https://github.com/hackerspace-ntnu/website.git

Set up the virtualenv

Install virtualenv: pip3 install virtualenv

Create virtualenv: virtualenv venv

Activate virtualenv: source venv/bin/activate

Install all python packages

Go into the project: cd website/

Install requirements: pip install -r requirements.txt

Create local_settings.py: vim local_settings.py and add the follow values:

  • SECRET_KEY = ""
  • DEBUG = True
  • DOOR_KEY = ''
  • EMAIL_HOST_USER = 'web.hackerspace.ntnu@gmail.com'
  • DATABASE_USERNAME = 'hackerspace'

Set up the database

Change to postgres user: sudo su - postgres

Open database: psql

Create the new database: CREATE DATABASE hsdb;

Create user for the database: CREATE USER hackerspace WITH PASSWORD 'password';

Grant access to the user just created: GRANT ALL PRIVILEGES ON DATABASE hsdb TO hackerspace;

Exit the database: \q

Exit postgres user session: exit

Populate the database

Make migrations for the database: python manage.py makemigrations

Migrate the database: python manage.py migrate

Start the server

Run the server: python manage.py runserver

Project Statistics

Sourcerank 6
Repository Size 31.9 MB
Stars 7
Forks 2
Watchers 15
Open issues 3
Dependencies 12
Contributors 16
Tags 0
Last updated
Last pushed

Top Contributors See all

Amund Tenstad martsime Jonas Muribø Herman S Geir Kulia Andreas Løve Selvik Mathias Ose Øystein Sigholt Ilse Visser Kristian finninde Linn Vikre Tri Nguyen Iver Jordal Stian Jensen John Chen

Something wrong with this page? Make a suggestion

Login to resync this repository