Skip to content

nimishathallapally/DMS

Repository files navigation

Document Management System (DMS)

A comprehensive document management system built with Django backend, Angular frontend, and AI-powered text summarization capabilities.

Prerequisites

  • Python 3.8+
  • Node.js 14+
  • PostgreSQL
  • Angular CLI

Setup Instructions

1. Database Setup

Before running the application, you need to set up the PostgreSQL database:

Option A: Automated Setup (Recommended)

Navigate to the database setup directory and run the automated script:

cd django-back-end\db_setup
.\setup_postgres.bat

This script will:

  • Install required Python packages
  • Create a PostgreSQL database
  • Import data from dms.sql file
  • Configure Django settings

Option B: Manual Setup

If you prefer manual setup, refer to the detailed instructions in django-back-end\db_setup\DB_SETUP_README.md.

2. Backend Setup (Django)

  1. Navigate to the Django backend directory:

    cd django-back-end
  2. Install Python dependencies:

    pip install -r requirements.txt
  3. Run database migrations:

    python manage.py migrate
  4. Start the Django development server:

    python manage.py runserver

The backend will be available at http://localhost:8000

3. Frontend Setup (Angular)

  1. Navigate to the Angular app directory:

    cd angular-app
  2. Install Node.js dependencies:

    npm install
  3. Set the Node.js environment variable for legacy OpenSSL support:

    $env:NODE_OPTIONS="--openssl-legacy-provider"
  4. Start the Angular development server:

    ng serve

The frontend will be available at http://localhost:4200

4. AI Model Setup

  1. Navigate to the model directory:

    cd model
  2. Install required dependencies (if not already installed):

    pip install streamlit
  3. Run the Streamlit application:

    streamlit run app.py

The AI model interface will be available at http://localhost:8501

Project Structure

  • django-back-end/: Django REST API backend
  • angular-app/: Angular frontend application
  • model/: AI-powered text summarization models
  • db_setup/: Database setup scripts and configurations

Features

  • Document upload and management
  • Folder organization
  • AI-powered text summarization
  • RESTful API backend
  • Modern Angular frontend
  • PostgreSQL database integration

Development Notes

  • The run.py file contains the Streamlit app code
  • Model implementations are located in the individual model files (bart.py, gemini.py, llama.py, etc.)
  • Database configuration and setup scripts are in the db_setup/ directory

Troubleshooting

  • If you encounter Node.js OpenSSL errors, make sure to set the NODE_OPTIONS environment variable as shown in step 3 of the frontend setup
  • For database connection issues, ensure PostgreSQL is running and check the connection settings in Django's settings.py
  • Refer to the specific README files in each directory for component-specific instructions

About

Document Management System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •