Manual Installation - RPI-HASS/rpi_csdt_community GitHub Wiki
How-to deploy for development
Before setup you need:
- Python 2.X
- Python Virtualenv
- Python setup tools
- Libpq-dev
- Git
- Subversion
- Mercurial
- NPM & Node
- This repo (clone, fork, or download)
Setup for Linux:
cd {{ Directory of this repo }}
. ./activate
sudo npm install -g less
sudo npm install -g yuglify
# For the time being you will need to select option 1 and timezone.now()
python ./manage.py migrate
git submodule init
git submodule update
# Enter credentials as desired
python manage.py createsuperuser
# Every time you start to develop, start the server
# It should auto refresh when you change a file
python ./manage.py runserver
Setup for Windows
cd {{ Directory of this repo }}
virtualenv python
python\Scripts\activate.bat
npm install -g less
npm install -g yuglify
pip install -r ./libraries.txt.lock
pip install -r ./libraries-vcs.txt
pip install -r ./libraries-heroku.txt
# For the time being you will need to select option 1 and timezone.now()
python ./manage.py migrate
git submodule init
git submodule update
# Enter credentials as desired
python manage.py createsuperuser
# Every time you start to develop, start the server
# It should auto refresh when you change a file
python ./manage.py runserver
Then you should be able to see the project at http://127.0.0.1:8000/