hoh / incubator

Django hackerspace website for UrLab

Home Page:https://urlab.be

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SHAME

incubator

Let's bootstrap a new incubator for UrLab ! (in python and with an API this time)

Quick brainstorming https://pad.lqdn.fr/p/incubator

Install dependencies

  • Running on Ubuntu :
sudo apt-get install python3-dev python3-setuptools libtiff5-dev libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python3-pip
sudo pip3 install virtualenv
  • Running on Fedora
sudo dnf install libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel python3-devel python3-setuptools python3-virtualenv
  • Running on Mac OS
brew install postgresql

Setup

# Env vars. Change the Value by what you want
echo "export DEBUG=1" >> .env
echo "export FAKE_REDIS=1" >> .env
echo "export EMAIL_HOST=smtp.tonserver" >> .env
echo "export EMAIL_PORT=25" >> .env

virtualenv -p python3 ve3 # or virtualenv-3 -p python3 ve3
source ve3/bin/activate
source .env
pip install -r requirements.txt
./manage.py migrate
./manage.py runserver

You can fill the .env file with other stuff as well, i you wish to develop using a psotgres database, you can add these lines and modify them depending on your configuration :

export SQL_ENGINE=django.db.backends.postgresql
export SQL_DATABASE=<DBNAME>
export SQL_USER=<USERNAME>
export SQL_HOST=<HOST>
export SQL_PORT=<PORT>

MQTT backend

pip install paho-mqtt

Create a user

./manage.py createsuperuser

View / Edit Notebooks

./manage.py shell_plus --notebook

About

Django hackerspace website for UrLab

https://urlab.be

License:GNU Affero General Public License v3.0


Languages

Language:Jupyter Notebook 42.7%Language:Python 31.4%Language:HTML 25.1%Language:CSS 0.4%Language:Dockerfile 0.3%Language:Shell 0.1%Language:JavaScript 0.0%