Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.6 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.6 KB

Flask Application

This project is a Flask web application that integrates with CAS for authentication and Redis for session management and data storage. It also uses WebSocket for real-time updates.

Table of Contents

Installation

  1. Clone the repository:
git clone https://github.com/dan-zong-hao/dcz-backend.git
cd dcz-backend
  1. Create and activate a Conda environment using the environment.yml file:
conda env create -f environment.yml
conda activate win
  1. Configure your environment variables. Replace the placeholders in the code (e.g., app_login_url, cas_url, Redis configuration) with your actual configuration.

Usage

  1. Start your dcz-frontend

  2. Start the dcz-backend

python app.py

Features

  • CAS Authentication: Integrated with CAS for secure user authentication.
  • Session Management: Uses Redis for session storage and management.
  • WebSocket Integration: Real-time updates using SocketIO.
  • Vote and Views Tracking: Tracks user votes and project views in Redis.
  • Blacklist Management: Handles user access control through a blacklist.

Contributing

  • Fork the repository.
  • Create your feature branch (git checkout -b feature/YourFeature).
  • Commit your changes (git commit -m 'Add some feature').
  • Push to the branch (git push origin feature/YourFeature).
  • Open a pull request.

License

  • This project is licensed under the MIT License - see the LICENSE file for details.