A simple web application built with TypeScript, React, and React Bootstrap that allows users to search for books using the Open Library API. Users can enter a book name, toggle sorting by relevance or year of publication, and navigate through paginated search results.
Visit the Live Demo to see the application in action.
- Search: Enter a book name to search for relevant books using the Open Library API.
- Sorting: Toggle between sorting search results by relevance or year of publication.
- Pagination: Navigate through paginated search results.
- TypeScript: Provides type safety and improves developer productivity.
- React: JavaScript library for building user interfaces.
- React Bootstrap: Bootstrap components built for React, providing ready-to-use UI elements.
- Axios: Promise-based HTTP client for making API requests.
- Node.js and npm (Node Package Manager) installed on your local machine.
-
Clone the repository:
git clone https://github.com/Darshan1510/open-book-search.git cd open-book-search
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open http://localhost:3000 in your browser to view the application.
- Enter a book name in the search box and it will show you the appropriate results.
- Toggle the switch to sort search results by relevance or year of publication.
- Navigate through paginated search results using the pagination controls.
-
To deploy this application, build the project for production:
npm run build
-
Deploy the build folder to your hosting service.
This project is licensed under the MIT License - see the LICENSE file for details.