Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BookSelfs Website: A web application built with Node.js, React, and MySQL for managing a list of books. Users can add, update, and delete book records. Check the README for more details.

Notifications You must be signed in to change notification settings

navinAce/BookSelfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

BookSelfs Website

This is a BookSelfs Website built using Node.js, React, and MySQL. The website allows users to manage a list of books, including adding, updating, and deleting book records.

Table of Contents

  • Features
  • Technologies Used
  • Setup Instructions
    • Prerequisites
    • Backend Setup
    • Frontend Setup
    • Running the Application
    • Database Setup
  • Contributing
  • License

Features

  • Add new books
  • Update existing books
  • Delete books
  • View a list of all books

Technologies Used

  • Backend: Node.js with Express
  • Frontend: React
  • Database: MySQL

Setup Instructions

Prerequisites

  • Node.js and npm installed
  • MySQL installed and running

Backend Setup

  1. Clone the repository:

    git clone https://github.com/navinAce/BookSelfs.git
  2. Install dependencies:

    npm install
  3. Set up the database:

    • Create a MySQL database named book_database.
    • Update the database connection settings in your db.js or .env file.
  4. Set up package.json and run the backend server:

    npm init
    "dev": "nodemon -r dotenv/config --experimental-json-modules src/index.js"
    npm run dev

Frontend Setup

  1. Navigate to the frontend directory:

    cd ../frontend
  2. Install dependencies:

    npm install
  3. Run the frontend server:

    npm run dev

Running the Application

  • The backend server will be running at http://localhost:8000.
  • The frontend server will be running at http://localhost:5173.

Open your browser and navigate to http://localhost:5173 to use the application.

Database Setup

Since the database files are not included in the repository, you need to set up the MySQL database manually:

  1. Create the database:

    CREATE SCHEMA bookdatabase;
    USE bookdatabase;
  2. Create the necessary tables:

    CREATE TABLE books (
     id INT AUTO_INCREMENT,
     bookName VARCHAR(50) NOT NULL,
     authorName VARCHAR(50) NOT NULL,
     price VARCHAR(50) NOT NULL,
     date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
     PRIMARY KEY (id)
    );
    DESC books;

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

BookSelfs Website: A web application built with Node.js, React, and MySQL for managing a list of books. Users can add, update, and delete book records. Check the README for more details.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /