Skip to content

yhf2000/SDUBAS-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDUBAS-Backend: Blockchain-Based Academic System

This repository contains the backend code for SDUBAS, an academic system built on blockchain technology.

Deploy the Project

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

Build Image Yourself (Please note that some configuration files are not provided.)

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  

Running Asynchronous Tasks

For each asynchronous task, use a separate terminal.

Sending Email Verification Codes

To execute the asynchronous task for sending email verification codes, run the following command:

celery -A Celery.send_email worker --loglevel=INFO -P eventlet

Performing Add Operations

To execute the asynchronous task for adding operations, run the following command:

celery -A Celery.add_operation worker --loglevel=INFO -P eventlet

Upload Files

To execute the asynchronous task for uploading files, run the following command:

celery -A Celery.upload_file worker --loglevel=INFO -P eventlet

Encryption Methods

Password Encryption

  • Algorithm: SHA-256
  • Content : Password
  • Salt: User's username

Operation Encryption

  • Algorithm: SHA-256
  • Content : Func
  • Output: Hexadecimal representation of the hash value

Token Generation

  • Generates a random UUID and returns its hexadecimal representation.

Six-Digit Token (token_s6)

  • Generates a six-digit random number.

Feel free to explore and contribute!

About

Blockchain based Academic System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages