Skip to content

ayeshakhalid192007-dev/PHARMACY_RECORD_SYSTEM

Repository files navigation

πŸ₯ PharmaCare - Pharmacy Record System

A comprehensive, easy-to-use Pharmacy Record Management System designed to streamline store operations, inventory tracking, and sales.


πŸ“‹ Table of Contents


πŸ” Overview

PharmaCare offers a complete solution for small to medium-sized pharmacies. It allows staff to manage medicines, track stock levels in real-time, process sales quickly, and generate insightful business reportsβ€”all from a single, intuitive dashboard.


✨ Key Features

πŸ“Š Dashboard

  • Real-time Overview: Instantly view total medicines, low stock alerts, and daily sales stats.
  • Smart Alerts: Visual indicators and notifications for expiring medicines and low inventory.

πŸ’Š Medicine Management

  • Centralized Inventory: Create, read, update, and delete medicine records.
  • Advanced Search: Filter by category (Tablet, Syrup, Injection) or search by name.
  • Detailed Tracking: Keep tabs on batch numbers, prices, and expiry dates.

πŸ›’ Sales Point (POS)

  • Fast Billing: Integrated shopping cart for quick checkout.
  • Auto-Calculations: Automatic tax, discount, and total amount calculations.
  • Stock Sync: Inventory is automatically updated after every sale.

πŸ“ˆ Reports & Analytics

  • Sales Insights: Generate reports for custom date ranges.
  • Expiry Tracking: "First Expiring, First Out" alerts to reduce wastage.
  • Stock Levels: Detailed reports on current inventory status.

πŸ‘₯ User Roles

  • Admin & Staff: Secure login with Role-Based Access Control (RBAC).

πŸ› οΈ Technology Stack

Built with modern, lightweight, and efficient tools.

Frontend

  • HTML5 HTML5: Semantic structure.
  • CSS3 CSS3: Responsive Flexbox/Grid layouts.
  • JavaScript Vanilla JS (ES6+): Modular application logic.
  • Google Fonts: Inter typeface for optimal readability.

Backend

  • Node.js Node.js: Runtime environment.
  • Express.js Express.js: Web server framework.
  • File System (FS): Custom JSON-based database engine (No SQL/NoSQL required).
  • Bcrypt: Security & password hashing.

βš™οΈ Installation & Setup

  1. Clone the Repository

    git clone https://github.com/your-username/pharmacare.git
    cd pharmacare
  2. Install Dependencies

    npm install
  3. Run the Server

    npm start
    # OR
    node server.js
  4. Launch Application Open your browser and visit: http://localhost:3000


πŸ“– Usage Guide

πŸ” Default Login

Role Username Password
Admin admin admin123

πŸš€ Getting Started

  1. Log in with the credentials above.
  2. You will be directed to the Dashboard to see an overview of your store.

πŸ“¦ Managing Inventory

  1. Navigation: Go to Medicines.
  2. Add: Click + Add Medicine, fill in the form (Name, Batch, Expiry, etc.), and Save.
  3. Update Stock: Use the Stock page to receive new shipments.

πŸ’Έ Processing Sales

  1. Navigation: Go to Sales.
  2. Click + New Sale or the Cart Icon.
  3. Select items, adjust quantities, applies discounts, and click Complete Sale.

πŸ“Έ Screenshots

To help you visualize the application, place your screenshots in the images/screenshots/ folder with the filenames below.

Dashboard Medicine List
Dashboard Medicines
Sales Interface Reports
Sales Reports

πŸ“‚ Project Structure

project/
β”œβ”€β”€ πŸ“ css/                 # Global styles and themes
β”œβ”€β”€ πŸ“ js/                  # Application modules (ES6)
β”‚   β”œβ”€β”€ app.js              # Entry point
β”‚   β”œβ”€β”€ auth.js             # Login/Logout handling
β”‚   β”œβ”€β”€ db.js               # Data abstraction layer
β”‚   └── ...                 # Feature-specific modules
β”œβ”€β”€ πŸ“ images/              # Assets and icons
β”œβ”€β”€ πŸ“ node_modules/        # Vendor dependencies
β”œβ”€β”€ βš™οΈ server.js            # Express application server
β”œβ”€β”€ πŸ—„οΈ database.js          # Low-level file DB logic
β”œβ”€β”€ πŸ“„ pharmacy_data.json   # Actual data storage (JSON DB)
β”œβ”€β”€ πŸ“„ index.html           # Main SPA container
└── πŸ“„ package.json         # Project manifests

πŸ”Œ API Documentation

The backend exposes a REST API at /api.

Method Endpoint Description
POST /api/auth/login Authenticate user
GET /api/medicines Retrieve medicine list
POST /api/sales Create a new transaction
GET /api/reports/dashboard Fetch dashboard statistics

πŸ“„ License

This project is open-source and available for educational purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors