Skip to content

openearth/delft3d-gt-server

Repository files navigation

Build Status codecov

delft3d-gt-server

Delft3D Geological Tool web application server

Install

Make sure to have postgres 12 container up and running:

docker run -e "POSTGRES_DB=djangodb" -e "POSTGRES_HOST_AUTH_METHOD=trust" -e "POSTGRES_USER=django" postgres:12

Install delft3d-gt-ui next to this repo and do

npm install
npm run build

so you end up with a dist folder

Duplicate delft3dgtmain/provisionedsettings.sample.py to remove the .sample and edit it to have:

DEBUG = True
ALLOWED_HOSTS = ["*"]
STATIC_ROOT = "./static/"
STATIC_URL = "/static/"
STATICFILES_DIRS = ["../delft3d-gt-ui/dist/"]

Now you can do:

pip install -r requirements.txt
./manage.py collectstatic
./manage.py migrate
./manage.py loaddata delft3dgtmain/fixtures/default_users_groups.json
./manage.py loaddata delft3dworker/fixtures/default_template.json

Run

./manage.py createsuperuser
./manage.py runserver 0.0.0.0:8000