Skip to content
Customisation of Archetype framework for Hieroglyphic Hands research project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hierohands
.gitignore
LICENSE
README.md
manage.py

README.md

hierohands-archetype

Customisation of Archetype framework for Hieroglyphic Hands research project

https://github.com/kingsdigitallab/hierohands-archetype

Pre requisites

  • linux environment (ubuntu/debian)
  • python2, with pip and virtualenv
  • postgresql 9+
  • git
  • nodejs > npm > lessc, typescript

Local deployment

pull code

cd AROOT # AROOT is the root path where you'll install archetype
git clone -b develop git@github.com:kcl-ddh/digipal.git digipal_github
git clone git@github.com:kingsdigitallab/hierohands-archetype.git

project folders

cd AROOT
cd hierohands-archetype
ln -s ../digipal_github/digipal
ln -s ../digipal_github/digipal_text
ln -s ../digipal_github/build

pythonvirtual environment

cd AROOT
python2 -m virtualenv venv
. venv/bin/activate
pip install -r hierohands-archetype/build/requirements.txt

database

sudo su postgres
psql
create user app_hierohands with password 'XXX';
\q
createdb -E 'utf-8' -T template0 -O app_hierohands app_hierohands_lcl

and modify local_settings.py accordingly

Settings files

hierohands/local_settings.py SHOULD NOT be part of github repo, it is reserved for any sensitive information like database connections, address to image server, etc. and for anything specific to a particular instance of your site.

hierohands/settings_hierohands.py contains your project customisations, anything which is not sensitive and is shared between all instances (local, development, staging, live) of the projects.

hierohands/settings.py: leave this as it is

digipal/settings.py: leave this as it is; it contains the fully generic / default settings for any digipal instance

minimal DB setup

./manage.py migrate ./manage.py createsuperuser

run server

./manage.py runserver 0:8001

browse your site

open browser as http://localhost:8001/

You can’t perform that action at this time.