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.
- Clone the repository:
git clone https://github.com/dan-zong-hao/dcz-backend.git
cd dcz-backend
- Create and activate a Conda environment using the environment.yml file:
conda env create -f environment.yml
conda activate win
- Configure your environment variables. Replace the placeholders in the code (e.g., app_login_url, cas_url, Redis configuration) with your actual configuration.
-
Start your dcz-frontend
-
Start the dcz-backend
python app.py
- 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.
- 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.
- This project is licensed under the MIT License - see the LICENSE file for details.