This repository contains the backend code for SDUBAS, an academic system built on blockchain technology.
docker pull zhao17/sdubas:latest
ID is the ID of the server to be deployed to, and server 10 is the primary server by default
docker run -e ID="10" -d -p 80:80 -p 3306:3307 -p 6379:6379 --name sdubas zhao17/sdubas:latest
First, put SDUBAS-backend and SDUBAS-frontend in the deploy directory
Second, enter the deploy directory and run the following command to build
docker build -t sdubas .
Finally, run the following command to start your exploration
docker run -e ID="10" sdubas
For each asynchronous task, use a separate terminal.
To execute the asynchronous task for sending email verification codes, run the following command:
celery -A Celery.send_email worker --loglevel=INFO -P eventlet
To execute the asynchronous task for adding operations, run the following command:
celery -A Celery.add_operation worker --loglevel=INFO -P eventlet
To execute the asynchronous task for uploading files, run the following command:
celery -A Celery.upload_file worker --loglevel=INFO -P eventlet
- Algorithm: SHA-256
- Content : Password
- Salt: User's username
- Algorithm: SHA-256
- Content : Func
- Output: Hexadecimal representation of the hash value
- Generates a random UUID and returns its hexadecimal representation.
- Generates a six-digit random number.
Feel free to explore and contribute!