Giter VIP home page Giter VIP logo

dbs-label's Introduction

Blood Donation System

Description

The Blood Donation System is a Node.js application that utilizes MySQL to manage donor and patient information. It provides a simple interface to add donors and patients, check blood availability, generate bills, and maintain a database of blood donors.

Table of Contents

Installation

Before running the application, ensure that you have Node.js and MySQL installed on your machine. Follow the steps below to set up the project:

  1. Node.js: If you don't have Node.js installed, download and install it from https://nodejs.org/.

  2. MySQL: Install MySQL on your machine. You can download it from https://www.mysql.com/.

  3. Clone the repository:

    git clone https://github.com/your-username/blood-donation-system.git
    cd blood-donation-system
  4. Install dependencies:

    npm install
  5. Start MySQL Server:

    • For Windows:

      # Start MySQL server
      net start mysql
    • For Linux:

      # Start MySQL server
      sudo service mysql start
  6. Configure the database:

    • Create a MySQL database named mysql (you can choose a different name if you prefer).

      CREATE DATABASE IF NOT EXISTS mysql;
      USE mysql;
    • Update the configuration in config.js with your database details.

  7. Run the application:

    node app.js

Usage

To use the Blood Donation System:

  1. Open your web browser and go to http://localhost:3000/ to access the homepage.

  2. To navigate to the admin route, visit http://localhost:3000/admin.

  3. Add donors and patients as follows:

    • Add donor: Click on the "Add Donor" button on the homepage, enter the donor details, and submit the form.

    • Add patient: Navigate to http://localhost:3000/, click on the "Add Patient" button, enter patient details, and submit the form.

  4. Check blood availability:

    • Navigate to http://localhost:3000/, enter patient details, and the system will display a donor list if the patient is present in the database.
  5. Generate bills:

    • After selecting a donor, a bill will be generated, and the donor and blood details will be removed from the database.

Features

  • Add Donor: Ability to add information about blood donors.
  • Add Patient: Ability to add information about patients.
  • Check Blood Availability: Check if a particular blood type is available for a given patient.
  • Generate Bills: Generate bills for blood donations and remove donor and blood details from the database.

Contributing

If you'd like to contribute to this project, please follow the guidelines outlined in the CONTRIBUTING.md file.

License

This project is licensed under the MIT License.

dbs-label's People

Contributors

noochila avatar manu-as avatar

Watchers

 avatar

Forkers

manu-as

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.