This is a simple application to learn the basic of Django along with Elasticsearch.
If you want to start with Django. You can follow the steps here written.
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
install pip lib
pip install -r requirements.txt
How to install elastic search with Docker in local system
to create network
docker network create elastic
to create container
docker run \ --name elasticsearch \ --net elastic \ -p 9200:9200 \ -e discovery.type=single-node \ -e ES_JAVA_OPTS="-Xms200m -Xmx200m"\ -e xpack.security.enabled=false \ -e xpack.security.http.ssl.enabled=false \ -e xpack.security.transport.ssl.enabled=false \ -it \ docker.elastic.co/elasticsearch/elasticsearch:8.6.1
to test
curl -X GET "localhost:9200"
Then follow these command to your root folder in different tab if terminal
Migrations: python manage.py makemigrations
Migrate: python manage.py migrate
Seed: python manage.py create_seed_data
Superuser: python manage.py createsuperuser
Indexing elasticsearch: ./manage.py search_index --rebuild
Run the server: python manage.py runserver
to run a shell for this django application
From the root folder of the project run this command python manage.py shell
http://localhost:8000/blog/?name\_\_wildcard=\*f\*
to start the docker container for Kibana
docker run \ --name kibana \ --net elastic \ -p 5601:5601 \ docker.elastic.co/kibana/kibana:8.6.1
check in browser http://localhost:5601
Fork and clone my repository into your system. Or simply download as zip.
Why not take help from internet especiall from ChatGPT :)
If you want to add and update more into it let me know.
You can contribute into it. Kindly fork and clone first. Then create your branch. Commit to your branch and push to this repo. Create a pull request. Thanks for contributing and sharing with all.
Show your appreciation to those who have contributed to the project.
This is an open source projects, say how it is licensed.
I have just created it to help other junior developers. If any one want to be collaborator kindly let me know. Best regards.