A Google-style search interface built with Python Django, HTML/CSS, and Bootstrap, integrated with the Google Programmable Search Engine API. It also features toggle tabs to showcase AstraSoftwares' products like Web Design, AI Systems, and SEO.
- 🔎 Web-wide search using Google Custom Search API
- 🖼️ Image tab with full image results
- 📰 News, Videos, Books, Finance, Forums, and Maps tabs (custom UI routing)
- 🎛️ Toggle interface for AstraSoftwares products
- 📄 Pagination-ready search results
- 🧪 Clean, responsive UI with Bootstrap
- 🔐 Credentials stored in
.envfor security
- Python 3.x
- Django 4.x
- Bootstrap 5
- Google Programmable Search API
- dotenv for environment variables
git clone https://github.com/yourusername/astra-search.git
cd astra-searchpython -m venv env
source env/bin/activate # On Windows use: env\Scripts\activatepip install -r requirements.txtCreate a .env file in the root directory:
GOOGLE_API_KEY=your_api_key_here
GOOGLE_CSE_ID=your_cse_id_here
DEBUG=Truepython manage.py runserverThen go to: http://127.0.0.1:8000/
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Navigate to APIs & Services > Credentials
- Click Create Credentials > API Key
- Copy the generated key and paste it into your
.envfile asGOOGLE_API_KEY
- Visit https://programmablesearchengine.google.com/
- Click Add and follow the steps to create a new search engine
- Under Control Panel, copy your Search Engine ID (CSE ID)
- Paste it into your
.envfile asGOOGLE_CSE_ID - (Optional) Under Basics > Search the entire web, enable this option to allow global results
astra-search/
│
├── core/
│ ├── templates/core/
│ │ ├── base_search.html
│ │ ├── web.html
│ │ ├── images.html
│ │ └── ...
│ ├── views.py
│ └── urls.py
│
├── .env
├── requirements.txt
├── manage.py
└── README.md
- Add real-time suggestions (like Google Autocomplete)
- Infinite scroll or advanced pagination
- AI-powered search assistant (Gemini/ChatGPT-style)
- Dark mode toggle
- Upload as a SaaS tool with user analytics
Pull requests are welcome. For major changes, please open an issue first.
Developer: Ishmael Bett Company: Astra Softwares Email: info.astrasoft@gmail.com WhatsApp: +2547 2740 5667
MIT License © 2025 Ishmael Bett / Astra Softwares
