By Grace Njuguna
Book App is a react web application that contains a variety of books. One gets a brief detailed description of the book as well as its authors and its genre.
- HTML
- CSS
- JavaScript
- React JS
- JSON Server/Public API
Book APP is a react web application that contains a variety of books. A user can get a display of the available books and also add a book of their liking to the display.
To get a local copy up and running follow these steps:
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You need an IDE of your choice (preferably Visual Studio Code). You will need a browser (preferably Chrome) to view the webpage. You need to have installed npm and JSON-server on your local machine.
Clone the project using these links depending on your local environment using https or ssh
-
After a successful clone, move into the project directory and run
npm install
to install the required node modules -
Next, run
json-server --watch db.json
to boot the server/backend -
Then run
npm start
to start the react app. -
If you haven't installed json-server, use
npm -i -g json-server
to install the server on a global scope -
Open terminal and navigate into the project root folder, run
ls
to check if a filedb.json
is present then runjson-server --watch db.json
to start the server.
- Make sure your json-server is running for the app to work as intended.
- The project requires an internet connection to work because information is fetched from an external source.
👤 Grace Laura
- GitHub: @Gracelaura
- Twitter: @gracenj72116969
MIT License
Copyright (c) 2022 Grace Laura
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.