This is a simple web application that generates images based on user input using the Unsplash API.
- User can enter a search query to generate images related to that query.
- Images are fetched from the Unsplash API and displayed dynamically.
- Responsive design for various screen sizes.
- Vite: Fast development server and build tool.
- Unsplash API: Source of images based on search queries.
To get a local copy of the project up and running, follow these steps:
-
Clone the repository:
git clone https://github.com/abhinavkumar2369/Imaginify.git
-
Navigate to the project directory:
cd image-generator
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory of the project and add your Unsplash API access key:VITE_UNSPLASH_ACCESS_KEY=your_access_key_here
-
Start the development server:
npm run dev
-
Open your browser and visit http://localhost:3000 to view the application.
- Enter a search query into the search input field.
- Press Enter or click the Search button to generate images related to the query.
To deploy the project, you can use any static site hosting service. Here's how to build the project for production:
npm run build
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions, bug fixes, or feature requests.
This project is licensed under the MIT License.