To run the application, please follow these steps:
-
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]
-
Open a terminal or command prompt and navigate to the project directory.
-
Set up a virtual environment by running the following command:
python3 -m venv venv
-
Activate the virtual environment:
- For macOS/Linux:
source venv/bin/activate
- For Windows:
venv\Scripts\activate
- For macOS/Linux:
-
Install the required dependencies by running the following command:
pip3 install -r requirements.txt
-
Apply the database migrations:
python3 manage.py migrate
-
Initialize the necessary groups:
python3 manage.py init_group
-
Rebuild the elasticsearch search index:
python3 manage.py search_index --rebuild
-
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.