Pixel Search is a web application that provides search results and image results. It was developed as part of the OJASS'24 Hackathon organized by the National Institute of Technology Jamshedpur. The project combines a React frontend (built with Vite) and an Express backend, leveraging the SerpAPI service to fetch search results.
- Search Results: Users can enter search queries, and the application fetches relevant search results from various search engines.
- Image Results: In addition to text-based results, users can also view image results related to their queries.
- Responsive Design: The application is designed to work seamlessly across different devices and screen sizes.
-
Clone the Repository:
git clone https://github.com/Sonu-Hansda/pixelsearch.git cd pixelsearch
-
Install Dependencies:
- Navigate to the
pixelsearch
directory and install frontend dependencies:cd pixelsearch npm install
- Similarly, navigate to the
backend
directory and install backend dependencies:cd backend npm install
- Navigate to the
-
Environment Variables:
- Create a
.env
file in thebackend
directory and set the following variables:ReplaceBASE_URL=serp-base-url API_KEY=your-serpapi-api-key PORT=3000
your-serpapi-api-key
with your actual SerpAPI API key.
- Create a
-
Start the Application:
- Start the backend server:
cd backend npm run dev
- Start the frontend development server:
npm run dev
- Start the backend server:
-
Access the Application:
- Open your browser and visit
http://localhost:5173
to use Pixel Sync.
- Open your browser and visit
-
Search:
- Enter your search query in the search bar.
- Click the search button to retrieve search results.
-
Image Results:
- Scroll down to view image results related to your query.
- To deploy Pixel Sync to production, follow these steps:
- Set up a production server (e.g., using vercel, Nginx, Apache, or a cloud service like AWS).
- Build the frontend using
npm run build
in thefrontend
directory. - Configure your production environment variables (e.g., database connection, API keys).
- Deploy the backend and frontend to your server.
- Set up domain and SSL certificates (if applicable).
Contributions are welcome! If you'd like to contribute to Pixel Sync, feel free to submit pull requests or open issues.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as needed.