A Group Project of Computer Systems Security (COMP3334) subject at The Hong Kong Polytechnic University, made by JIANG Yiyang, WANG lili and XIONG Yifan, 2023-06-18
Visit the website https://3334.imjyy.com/ directly and use it without installation.
The minimum environment and system requirements for installation are as follows:
- Linux 4.0, CentOS 7.0, Windows 10
- Python 3.7
-
Download the original code file to the server
git clone https://github.com/fletcherjiang/NFT_Marketplace cd NFT_Marketplace -
Install the appropriate environment
pip install -r requirement.txt
-
Go to the app directory and modify the content of
app.py. If you run locally and on the server, you don't need to modify it, but you need to modify your own SSL certificate to replace your own.vim app.py
config.app.run(host='0.0.0.0', debug=True, port=8080, ssl_context=('fullchain.pem', 'privkey.key'))
-
Change the database settings in
config.pyvim config.py
app.config['DATABASE'] = { 'engine': 'peewee.MySQLDatabase', 'name': 'Your_database_Name', 'user': 'Database_user_name', 'password': '', 'host': 'localhost', 'port': 3306 }
-
Run
app.pyand open https://127.0.0.1:8000 or your own URL with a browser.python app.py