Library is an ordered system of heterogeneous electronic documents equipped with navigation and search tools.
Features:
- Fast search library data
- Display in REST-API form
Technologies used:
- Python + Django
- PostgreSQL
- ElasticSearch
Dependencies
Clone the repository:
$ https://github.com/maria-kanyushkova/Library.git
$ cd Library
Then install the dependencies:
$ pip install -r requirements.txt
Now you need to setup PostgreSQL
. Download and install it from official download page.
Database already defined in library/settings.py
file:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'library',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'localhost',
'PORT': '5432'
}
}
Setup database by following command (make sure you are at the same level as manage.py
):
$ python manage.py migrate
Run server by following command:
$ python manage.py runserver
And main link = http://127.0.0.1:8080/
.