Skip to content

Mixone-FinallyHere/incubator

 
 

Repository files navigation

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

Be careful as this may not work with python3.9 yet

# 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

python3 -m venv ve # or virtualenv-3 -p python3 ve3
source ve/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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 42.1%
  • Python 31.7%
  • HTML 25.4%
  • CSS 0.4%
  • Dockerfile 0.3%
  • Shell 0.1%