Web application for the organisation of volunteers in Civil Support.
- Switch to new a python 3.x environment with
virtualenv
(optional) - Install python dependencies
pip install -r requirements.txt
cd websocket-server
- Configure the server port in the
settings.py
file - Start server
python server.py
cd server
- Configure server
server/settings.py
. Most important settings:SECRET_KEY
(the existing one should be only used for debug purposes)DEBUG
TEMPLATE_DEBUG
CORS
(Important, when the client files are not served under the same URL as the REST-Server. Read more.)WEB_SOCKET_SERVICE_URL
(as configured above))
- Create database
python manage.py migrate
- Load fixtures
python manage.py loaddata POICategories
- Load fixtures
python manage.py loaddata VolunteerGroups
- Start server
python manage.py runserver #ip#:#port#
or embedded via wsgi
cd client
- Install node dependencies
npm install
(Dependency: node.js) - Install grunt
npm install -g grunt-cli
(Read more) - Deploy Webserver
grunt install
(when updating rungrunt deploy
to reuse the configured settings) - Serve one of the following static files (For example by
python -m SimpleHTTPServer #web-port#
)dist/controller/index.html
,dist/client/index.html
ordist/demo/index.html
Copyright of the ZUKS-Controller (C) 2015 Zivile Unterstützung im Katastrophenschutz e.V.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.