https://github.com/acdh-oeaw/defc-app
DEFC stands for Digitizing Early Farming Cultures, a project conducted by the Austrian Academy of Sciences.
https://github.com/acdh-oeaw/defc-app
archaeology django
Last synced: 4 months ago
JSON representation
DEFC stands for Digitizing Early Farming Cultures, a project conducted by the Austrian Academy of Sciences.
- Host: GitHub
- URL: https://github.com/acdh-oeaw/defc-app
- Owner: acdh-oeaw
- License: mit
- Created: 2015-11-20T15:20:38.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T13:20:21.000Z (12 months ago)
- Last Synced: 2025-04-07T05:51:17.764Z (7 months ago)
- Topics: archaeology, django
- Language: JavaScript
- Homepage: https://defc.acdh.oeaw.ac.at/
- Size: 36.2 MB
- Stars: 4
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DEFC-App
DEFC stands for Digitizing Early Farming Cultures, a project conducted by the [Austrian Academy of
Sciences](http://www.orea.oeaw.ac.at/go-digital.html). The DEFC-App is an application for curating, exploring, and retrieving archaeological datasets.
## install
* clone the repo
* change into the project's root directory e.g. `cd defc-app`
* create a virtual environment e.g. `virutalenv env` and activate it `source env/bin/activate`
* install required packages `pip install -r requirements_dev.txt`
* run migrations `python manage.py migrate`
* start the dev sever `python manage.py runserver`
* go to [http://127.0.0.1:8000](http://127.0.0.1:8000/) and check if everything works
## Docker
At the ACDH-CH we use a centralized database-server. So instead of spawning a database for each service our services are talking to a database on this centralized db-server. This setup is reflected in the dockerized setting as well, meaning it expects an already existing database (either on your host, e.g. accessible via 'localhost' or some remote one)
### building the image
* `docker build -t defc:latest .`
* `docker build -t defc:latest --no-cache .`
### running the image
To run the image you should provide an `.env` file to pass in needed environment variables; see example below:
* `docker run -it -p 8020:8020 --rm --env-file docker.env--name defc defc:latest`