Code Monkey home page Code Monkey logo

elasticsearch-drf's Introduction

Running the Application

To run the application, please follow these steps:

  1. Create an .env file in the project directory and add the following environment variables:

    • SECRET_KEY: [your_secret_key]
    • DEBUG: [True/False]
    • DATABASE_NAME: [your_database_name]
    • DATABASE_USER: [your_database_user]
    • DATABASE_PASSWORD: [your_database_password]
    • DATABASE_HOST: [your_database_host]
    • DATABASE_PORT: [your_database_port]
    • ELASTICSEARCH_HOST_PORT: [your_elasticsearch_host_port]
  2. Open a terminal or command prompt and navigate to the project directory.

  3. Set up a virtual environment by running the following command:

    python3 -m venv venv
  4. Activate the virtual environment:

    • For macOS/Linux:
      source venv/bin/activate
    • For Windows:
      venv\Scripts\activate
  5. Install the required dependencies by running the following command:

    pip3 install -r requirements.txt
  6. Apply the database migrations:

    python3 manage.py migrate
  7. Initialize the necessary groups:

    python3 manage.py init_group
  8. Rebuild the elasticsearch search index:

    python3 manage.py search_index --rebuild
  9. Start the development server:

    python3 manage.py runserver

The application should now be up and running locally. You can access it by opening a web browser and visiting the specified URL provided by the development server.

elasticsearch-drf's People

Contributors

mthri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.