Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Installation

Abhijith Anilkumar edited this page Oct 26, 2018 · 5 revisions

Installation

Prerequisites

  • Python 2.7.12
  • python-pip
  • python-virtualenv
  • ElasticSearch 2.x

Quickstart

  1. Clone the repository.

  2. Move to the main directory. Setup the virtual environment.
    virtualenv <name>

  3. Activate the virtual environment.
    . <path-to-venv>/bin/activate

  4. Install the python packages required.
    pip install -r requirements.txt

  5. Setup the local environment.
    cp appstore/settings/local.sample.env appstore/settings/local.env

  6. Move to src directory. Setup the database.
    python manage.py makemigrations
    python manage.py migrate

    To create a new superuser, use the following command :
    python manage.py createsuperuser

  7. Run the server.
    python manage.py runserver <port>
    By default, the site opens up in port 8000.

NOTE : The Django Admin site can be accessed at localhost:<port>/admin/. Login using a superuser account. To use the Search feature, ElasticSearch needs to be setup. Refer the Developer Documentation for more details.

Clone this wiki locally