Skip to content

By implementing a search API in Django,Users with a powerful and flexible search functionality that allows them to find the information they need efficiently using with Mongodb.

Notifications You must be signed in to change notification settings

Ajyrajput-2811/Search_Api_Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search_Api_Django

By implementing a search API in Django,Users with a powerful and flexible search functionality that allows them to find the information they need efficiently using with Mongodb.

Installing

Step by step commands on how to run this project on your computer.

1)- Install Virtualenv

pip install virtualenv

2)- Create Virtualenv

virtualenv venv

3)- Activate virtual env

source env/bin/activate

4)- Install requirements

pip install -r requirements.txt

Note: Above lines are required for first time installation.

Use Mongodb as a backend database for django project

5.1)- Install djongo:

pip install djongo

5.2)- Into settings.py file of your project, add:

DATABASES = {
     'default': {
         'ENGINE': 'djongo',
         'NAME': 'your-db-name',
     }
 }

6)- Execute below commands

python manage.py makemigrations
python manage.py migrate

Note: Above commands should be executed if there is any db level changes

7)- Create superuser for admin access and follow instruction, if not created one

python manage.py createsuperuser

Running the server

python manage.py runserver

And the project is ready for use on your computer!.

ScreenShot of the project

api Page:

Screenshot 2023-06-14 at 8 01 29 PM

Postman:

Screenshot 2023-06-14 at 8 01 52 PM Screenshot 2023-06-14 at 8 02 14 PM

MongoDB:

Screenshot 2023-06-17 at 2 20 53 PM

Django Admin:

Screenshot 2023-06-17 at 2 30 59 PM

About

By implementing a search API in Django,Users with a powerful and flexible search functionality that allows them to find the information they need efficiently using with Mongodb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages