Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.62 KB

README.md

File metadata and controls

69 lines (52 loc) · 1.62 KB

Library

PyPI PyPI

Overview

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

Getting started

Install the App

Clone the repository:

$ https://github.com/maria-kanyushkova/Library.git
$ cd Library

Then install the dependencies:

$ pip install -r requirements.txt

Setting up PostgreSQL

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 Library backend server

Run server by following command:

$ python manage.py runserver

And main link = http://127.0.0.1:8080/.