This is my Django Redis project for Start2Impact.
The main purpose of this project is to combine Django, Redis, and the Ethereum Goerli testnet blockchain to build a website that allows customers of a second-hand clothing marketplace to track the history of an item through the blockchain.
SecondChance is a Proof of Concept, an exercise focused on determining if an idea can be turned into a reality or not. For this reason, it covers only the item transaction on-chain proof and should be connected to an online marketplace to be used in a real situation.
If implemented correctly together with a second-hand marketplace, SecondChance could lead to several advantages such as enhanced transparency, increased trust between buyers and sellers, and a more sustainable fashion industry.
- Download the repository file
- Be sure to have Python installed on your device, for this project i used Python 3.10.6.
- Be sure to have a Python IDE on board (I recommend PyCharm).
- Open the program file in your IDE and create a virtual environment.
- Install program requirements by typing
pip install -r requirements.txt
in a new terminal window. - Update the program database by typing
cd Progetto
,python3 manage.py makemigrations
andpython3 manage.py migrate
. - Run the program by typing
python3 manage.py runserver
. - Check that Redis is correctly working by typing
redis-cli ping
in a new terminal window: if the response is something likePONG
, you're ready to enjoy SeconChance, just open http://127.0.0.1:8000/ in your browser. - Otherwise, if the response looks something different from
PONG
, most times it's because Redis just didn't start automatically so do it manually by typingredis-server
.
Python, Django, Redis, Etherum Goerli Testnet, HTML and Boostrap CSS