This project is a special forum for the communication of students, called Student Exchange Forum of BJUT.
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
- Download
docker pull hanhaozhi/sep_team16- Run
docker run -d -p 5000:5000 hanhaozhi/sep_team16- Generate
docker build -t team16:latest .- Run
docker run -d -p 5000:5000 team16:latest- 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 containerdocker kill <CONTAINER ID> #Stop runPlease use PyCharm as much as possible for the entire project, which can simplify the process of environment configuration.
git clone https://csgitlab.ucd.ie/18206155/debugger.gitYou'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.
pip install -r requirements.txt- For Linux and macOS,
export FLASK_APP=flasky.py
flask run- For Windows
set FLASK_APP=flasky.py
flask runIn the process of using pip to download the package, we have various problems. You can refer to these following information.
- If the terminal prompts "Requirement already satisfied: ..." but it cannot find the package we originally installed when running.
- Solution: We need to clear the cache data of PyCharm and reinstall all the packages we need through the "requirements.txt" file.
- And How to Clear the Cache Data: https://jingyan.baidu.com/article/656db918b1e142a281249cc8.html
- Internet speed is too slow resulting in download failure.
- Solution:Download via douban source. http://pypi.douban.com/simple
- Reference: https://blog.csdn.net/ITYTI/article/details/83313463
- After excluding the above problems, still cannot install any packet.
- Error info: Cannot connect to proxy solution:
- Solution: It may be caused by a proxy server set on the computer. Just shut off the proxy the sever.
- Reference: https://www.cnblogs.com/arvinls/p/6149417.html
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 |
Here is an student account for you to test.
| StudentID | Password |
|---|---|
| 84291189 | password |
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 |
|---|---|
| [email protected] | 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.
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 |
There are five members in the team. We have very good teamwork and we are very good at each other. The team members are Han Haozhi, Ou Liwei, Yang Qifan, Yang Xiao, Cai Songge.