This is a blog website built with Django and Tailwind CSS. It allows the admin to add articles and group them into categories.
Before getting started, make sure you have the following installed:
Clone the repository:
git clone https://github.com/snipher-marube/blogwebsite.git
Navigate to the project directory:
cd blogwebsite
Install the required dependencies:
pip install -r requirements.txt
Apply database migrations:
python manage.py migrate
Start the development server:
python manage.py runserver
Open your web browser and visit http://127.0.0.1:8000
to see the blog website.
To integrate Elasticsearch with the blog website, follow these steps:
Install Docker and Docker Compose if you haven't already.
Start the Elasticsearch container using Docker Compose:
docker-compose up -d elasticsearch
Rebuild the search index by running the following command:
python manage.py search_index --rebuild
Start the development server:
python manage.py runserver
Open your web browser and visit http://127.0.0.1:8000
to see the blog website with Elasticsearch integration.
After integrating Elasticsearch, you can use the search functionality on the blog website. Simply enter a search query in the search bar and press Enter. The website will display the articles that match the search query.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.