You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
王宇洋 e6ece1ff58 add-GeetTest 3 years ago
app add-GeetTest 3 years ago
migrations update-project 3 years ago
sdk add-GeetTest 3 years ago
.gitignore Original_Project_Structure 3 years ago
.gitlab-ci.yml CI 3 years ago
Dockerfile update-project 3 years ago
README.md update-project 3 years ago
config.py add-GeetTest 3 years ago
data-dev.sqlite add-GeetTest 3 years ago
flasky.py add-GeetTest 3 years ago
geetest_config.py add-GeetTest 3 years ago
requirements.txt add-Flask-debug-toolbar 3 years ago
test.py CI 3 years ago

README.md

Student Exchange Forum of BJUT

1. Introduction

This project is a special forum for the communication of students, called Student Exchange Forum of BJUT.

2. Deployment

2. 1 Run with Docker

You can download the docker image we have prepared from Docker Hub, or you can generate a new docker image based on the Dockerfile inside the code.

The premise of using docker is that your computer has docker

2.1.1 Download Docker Image

  • Download
docker pull hanhaozhi/sep_team16
  • Run
docker run -d -p 5000:5000 hanhaozhi/sep_team16

2.1.2 Generate a new Docker Image

  • Generate
docker build -t team16:latest .
  • Run
docker run -d -p 5000:5000 team16:latest

2.1.3 Open

  • Open Web APP
# If your computer is mac you can use this.
open -a "Google Chrome"  http://127.0.0.1:5000/ 
# If your computer is windows you can use this.
You can visit directly in the browser: 127.0.0.1:5000 to view.
  • Kill Run
docker ps   #View the CONTAINER ID of the running container
docker kill <CONTAINER ID>  #Stop run

2.2 Run with Virtualenv Environment

Please use PyCharm as much as possible for the entire project, which can simplify the process of environment configuration.

2.2.1 Clone project to local

git clone https://csgitlab.ucd.ie/18206155/debugger.git

2.2.2 Configure Python interpreter

You'll need to find Project Interpreter in Preferences of PyCharm to create a new Virtualenv Environment.

This is a brand new virtual environment and will not be affected by other environments in your computer.

2.2.3 Install all the packages

pip install -r requirements.txt

2.2.4 Run codes

  • For Linux and macOS,
export FLASK_APP=flasky.py
flask run
  • For Windows
set FLASK_APP=flasky.py
flask run

2.2.5 Problem that may arise

In the process of using pip to download the package, we have various problems. You can refer to these following information.

  1. If the terminal prompts "Requirement already satisfied: ..." but it cannot find the package we originally installed when running.
  1. Internet speed is too slow resulting in download failure.
  1. After excluding the above problems, still cannot install any packet.

3. Test

3.1 Student Account

3.1.1 Registration to verify identity

This is a forum platform for students at Beijing University of Technology, so you need to complete verification to successfully enroll student users.

Only the Student ID, ID and Student ID in the database match the Student ID, ID can complete the student user registration.

Here's the data for you to test registration to verify identity.

StudentID ID
18372301 111111111111111111
18372302 222222222222222222
18372303 333333333333333333
18372304 444444444444444444
18372305 555555555555555555
18372306 666666666666666666
18372307 777777777777777777
18372308 888888888888888888

3.1.2 A Student Account For Test

Here is an student account for you to test.

StudentID Password
84291189 password

3.2 Organization Account

3.2.1 Organization Account Registration

Organizational account registration needs to go through the administrator to review the organization account application information. If the information is true and reliable, the administrator will click the successful application button to send an email to the applicant to represent the success of the registration. On the contrary, the application failure of the mail.

Since the project is not actually deployed online, you need to play the role of administrator on your computer.

Administrator Email Password
sefbjut@163.com bjut123456

You need to log in to this mailbox and perform the administrator's action to complete the registration of the user account.

After clicking register success, your registration email will receive an email containing your organization's account information.

3.2.2 A Organization Account For Test

Student accounts can post and second-hand trading information. Organization accounts can post and activity information.

Here is an organization account for you to test.

OrganizationID Password
99999999 password

4. About Group 16

4.1 Group Name

Debugger

4.2 Group Members

UCD Student Numbers BJUT Student Numbers Name Email 中文名字
18206155 18372216 Han Haozhi haozhi.han@ucdconnect.ie 韩昊知
18206178 18372315 Yang Qifan qifan.yang@ucdconnect.ie 杨其帆
18206187 18372330 Yang Xiao xiao.yang1@ucdconnect.ie 杨骁
18206184 18372326 Ou Liwei liwei.ou@ucdconnect.ie 欧立炜
18206366 18372314 Cai Songge songge.cai@ucdconnect.ie 蔡颂歌