A comprehensive document management system built with Django backend, Angular frontend, and AI-powered text summarization capabilities.
- Python 3.8+
- Node.js 14+
- PostgreSQL
- Angular CLI
Before running the application, you need to set up the PostgreSQL database:
Navigate to the database setup directory and run the automated script:
cd django-back-end\db_setup
.\setup_postgres.batThis script will:
- Install required Python packages
- Create a PostgreSQL database
- Import data from
dms.sqlfile - Configure Django settings
If you prefer manual setup, refer to the detailed instructions in django-back-end\db_setup\DB_SETUP_README.md.
-
Navigate to the Django backend directory:
cd django-back-end
-
Install Python dependencies:
pip install -r requirements.txt -
Run database migrations:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
The backend will be available at http://localhost:8000
-
Navigate to the Angular app directory:
cd angular-app -
Install Node.js dependencies:
npm install
-
Set the Node.js environment variable for legacy OpenSSL support:
$env:NODE_OPTIONS="--openssl-legacy-provider"
-
Start the Angular development server:
ng serve
The frontend will be available at http://localhost:4200
-
Navigate to the model directory:
cd model
-
Install required dependencies (if not already installed):
pip install streamlit
-
Run the Streamlit application:
streamlit run app.py
The AI model interface will be available at http://localhost:8501
- 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
- Document upload and management
- Folder organization
- AI-powered text summarization
- RESTful API backend
- Modern Angular frontend
- PostgreSQL database integration
- The
run.pyfile 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
- If you encounter Node.js OpenSSL errors, make sure to set the
NODE_OPTIONSenvironment 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