Art Gallery Explorer is a web application built with Nuxt 3 that allows users to explore the vast collection of artworks from the Art Institute of Chicago. Leveraging the Art Institute of Chicago API, this app provides a user-friendly interface to search, view, and learn about various artworks.
- Search Artworks: Easily search for artworks by title, artist, or keyword.
- Artwork Details: View detailed information about each artwork, including the artist, creation date, medium, and high-resolution images.
- Random Artwork: Discover a new artwork each time you visit the app.
- Responsive Design: Enjoy a seamless experience on both desktop and mobile devices.
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/Bril3d/Art_Museum.git cd Art_Museum
-
Install dependencies:
npm install
-
Create a
.env
file: Create a.env
file in the root directory of the project and add any necessary environment variables. For example:API_BASE_URL=https://api.artic.edu/api/v1
-
Run the development server:
npm run dev
-
Build the project for production:
npm run build
-
Start the production server:
npm run start
Once the server is running, open your browser and navigate to http://localhost:3000
. You can now search for artworks, view details, and explore the collection.
Here's an example of how to fetch artworks using the Art Institute of Chicago API:
async function fetchArtworks(query) {
const response = await fetch(`${process.env.API_BASE_URL}/artworks/search?q=${query}`);
const data = await response.json();
return data.data;
}