Skip to content

Muhammad-Hamza12/bookstore-proj-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Certainly! Here's a basic README file outline for your bookstore project:


Bookstore Project

Welcome to the Bookstore project! This project provides a web interface for managing books, authors, and categories. It includes features such as adding, updating, deleting books, authors, and categories, as well as adding books to a shopping cart and making purchases.

Table of Contents

  1. Overview
  2. Features
  3. Setup Instructions
  4. Usage
  5. Technologies Used
  6. Contributing
  7. License

Overview

The Bookstore project is a web application built with HTML, CSS, and JavaScript for the frontend. It communicates with a backend server (not detailed here) to perform CRUD operations on books, authors, and categories. It includes a shopping cart functionality where users can add books and make purchases.

Features

  • Books Management:
    • Add, update, delete books.
    • View a list of books with details such as title, author, category, published date, ISBN, and price.
  • Authors Management:
    • Add, update, delete authors.
    • View a list of authors.
  • Categories Management:
    • Add, update, delete categories.
    • View a list of categories.
  • Shopping Cart:
    • Add books to the shopping cart.
    • View and remove books from the cart.
    • Purchase functionality to complete the order.

Setup Instructions

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-name>
    

    /store/auth/register for registering /store/auth/login for login /store/homepage for shopping cart , books etc

    JWT APi security , Django DRF , Authentication Django used.

  2. Set up the backend:

    • This README assumes you have a backend server handling API requests for books, authors, and categories. Modify API endpoints in the frontend code (fetch requests) to match your backend server's routes.
  3. Run the frontend:

    • Open index.html in a web browser.
    • Make sure your backend server is running and accessible.

Usage

  • Adding Books, Authors, and Categories:
    • Fill out the respective forms under each section and click "Add" or "Submit" to add new items.
  • Updating Books, Authors, and Categories:
    • Click the "Update" button next to an item to edit its details directly in the table cells.
  • Deleting Books, Authors, and Categories:
    • Click the "Delete" button next to an item to remove it from the list.
  • Shopping Cart:
    • Click "Add to Cart" on a book item to add it to the shopping cart.
    • Open the shopping cart by clicking the cart icon, review items, and click "Purchase" to complete the order.

Technologies Used

  • Frontend:
    • HTML, CSS, JavaScript
    • Fetch API for AJAX requests
  • Backend:
    • (Describe your backend technology here, e.g., Django, Flask, Node.js, etc.)
  • Database:
    • (Mention your database technology, e.g., PostgreSQL, MySQL, MongoDB, etc.)

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Notes:

  • Backend and Database: Replace placeholders with actual backend technology used (e.g., Django) and database (e.g., PostgreSQL).
  • Setup Instructions: Provide clear instructions for setting up the backend and running the frontend. Mention any dependencies or configurations needed.
  • Usage: Summarize key features and how users can interact with the application.
  • Contributing: Encourage contributions and provide guidelines for contributing to the project.
  • License: Specify the project's license (MIT License in this example) and refer to the LICENSE file for detailed terms.

Customize this README according to your project's specific details, technologies, and requirements.

About

bookstore-proj-assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published