This repository contains the Book App, which is divided into two main parts: the frontend and the API. The Book App allows users to add new books, fetch a random book from a local list, and fetch random books from an external API.
frontend/
- Contains the React application for the Book Library.api/
- Contains the Express.js application for the backend API.
The frontend application is built with React and Redux. It provides a user interface for managing and viewing books. The app allows users to:
- Add new books with a title and author.
- Fetch a random book from a local list.
- Fetch random books from an external API.
- React
- Redux
To install dependencies and run the frontend application, navigate to the frontend
directory and use the following commands:
cd frontend
npm install
npm start
For more detailed information, refer to the frontend README.
The API is built with Express.js and provides endpoints to fetch random books. It is deployed on Render and serves as the backend for the Book App.
- Express.js
- Endpoints
- /random-book - Fetches a random book.
- /random-book-delayed - Fetches a random book with a delay.
To install dependencies and run the API, navigate to the api directory and use the following commands:
cd api
npm install
npm start
For more detailed information, refer to the API README.
To get started with the entire project, follow these steps:
- Clone the repository:
git clone https://github.com/alive2020/Book-App-React-Redux.git
- Set up the frontend:
cd Book-App-React-Redux/frontend
npm install
npm start
- Set up the API:
cd ../api
npm install
npm start
This project is licensed under the ISC License. See the LICENSE files in the frontend and api directories for more details.