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