Installation¶
Clone the project from github (use
-r
to fetch submodules content)
git clone https://github.com/bento-platform/katsu.git
Install the git submodule for DATS JSON schemas (if did not clone recursively):
git submodule update --init
Create and activate a virtual environment
Move to the main directory and install required packages:
pip install -r requirements.txt
The service uses PostgreSQL database for data storage. Install PostgreSQL following this tutorial.
Configure database connection in settings.py
e.g. settings if running database on localhost, default port for PostgreSQL is 5432:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'database_name',
'USER': 'user',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '5432',
}
}
From the main directory run (where the manage.py file located):
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Development server runs at
localhost:8000