Coder Social home page Coder Social logo

mini-project-react-books's Introduction

Mini-project-idea

  • The project involves creating a book website.
  • The website will have a home page.
  • The website will feature a book list page where all books will be displayed.
  • The book list page will have a button to add a new book to the list.
  • Users will be able to update the availability of existing books.
  • Users will be able to delete books from the list.
  • The website will have a details page for each book.
  • The details page will provide users with access to all relevant information about the book.

BooksData

  {
    id: 1,
    name: "The Alchemist",
    details:
      "This international bestseller follows the journey of a shepherd boy named Santiago who travels to Egypt in search of treasure. It's a timeless tale about following your dreams and discovering your true purpose in life. ",
    image:
      "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1654371463i/18144590.jpg",
    available: true,
  },
  {
    id: 2,
    name: "The Hunger Games",
    details:
      "In this dystopian novel, Katniss Everdeen volunteers as tribute for the Hunger Games, a televised competition where teenagers fight to the death. It's a gripping and thought-provoking story about survival, sacrifice, and rebellion.",
    image:
      "https://m.media-amazon.com/images/W/IMAGERENDERING_521856-T1/images/I/41tqzW6kO7S.jpg",
    available: true,
  }

Steps

  • Create a wireframe for the project in 30 minutes using Figma.
  • Identify the components required for the project and create a separate file for each one.
  • Install any necessary libraries required for the project to run smoothly.
  • Create the navbar using a CSS framework like Bootstrap.
  • Build the pages according to the wireframe using the previously created components.
  • Create a books.js file to handle data retrieval from the backend using APIs.

here are all the APIs

Title Method Endpoint Data required
Fetch all books GET https://mini-project-react-books.herokuapp.com/books
Fetch one book GET https://mini-project-react-books.herokuapp.com/book/${id}
Create a book POST https://mini-project-react-books.herokuapp.com/books name, image, details, available
Update a book PUT https://mini-project-react-books.herokuapp.com/book/${id} available
Delete a book DELETE https://mini-project-react-books.herokuapp.com/books/${id}

mini-project-react-books's People

Contributors

engxli avatar reemalchal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.