Bukuacak is a simple and efficient app for accessing book data, offering various features such as filtering, sorting, and getting random books. This repository contains the front-end setup for displaying and interacting with the Bukuacak API. View Bukuacak-api
- Get Books with Filters: Fetch a list of books with multiple filtering options such as year, genre, keyword, and sorting.
- Get Book by ID: Retrieve details of a specific book using its unique ID.
- Get Book by Query Parameter: Fetch a book by providing an ID as a query parameter.
- Get Random Book: Get a random book from the collection based on optional filters.
- Get Genre Statistics: Retrieve statistics on the number of books available in each genre.
This project is set up using React and Vite for fast development and build speed.
Before getting started, make sure you have the following installed:
- Node.js (>= 14.x)
- npm (>= 6.x)
-
Clone the repository:
git clone https://github.com/yourusername/bukuacak.git cd bukuacak
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and go to
http://localhost:3000
to see the application in action.
In the project directory, you can run:
npm run dev
: Starts the development server with hot module replacement (HMR) for fast updates.npm run build
: Builds the project for production.npm run preview
: Preview the production build locally.
This project is powered by the following libraries:
- React: A JavaScript library for building user interfaces.
- Vite: A fast build tool for modern web projects.
- @vitejs/plugin-react: Official React plugin for Vite.
- ESLint: A static code analysis tool for identifying problematic patterns in JavaScript code.
This repository uses Vite, a modern and fast build tool. The following plugins are used for an optimized development experience:
- @vitejs/plugin-react: Uses Babel for Fast Refresh in React development.
- @vitejs/plugin-react-swc: An alternative that uses SWC for Fast Refresh, providing better performance for large projects.
Feel free to open issues or submit pull requests if you encounter bugs or want to propose enhancements. All contributions are welcome!
- Fork the repository.
- Clone your fork:
git clone https://github.com/yourusername/bukuacak.git
- Create a new branch for your feature or fix:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m "Description of changes"
- Push your changes:
git push origin feature-branch
- Open a pull request to the main repository.
This project is licensed under the MIT License - see the LICENSE file for details.
- Vite for providing an amazing development experience.
- React for making building interactive UIs easy.
- ESLint for enforcing consistent code quality.