Skip to content

SecondChance, a website that allows customers of a second-hand clothing marketplace to track the history of an item through the Ethereum blockchain.

Notifications You must be signed in to change notification settings

Riksa011/Start2Impact-Django-Redis-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Start2Impact Django & Redis Project

SecondChance logo

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.


📖Index


🚀 Main Features:

  • A website homepage with a brief explanation of the project

HOMEPAGE - IMAGE 1



  • A section where administrators can create a new account and log into the platform

ADMIN AUTHENTICATION DROPDOWN - IMAGE 2 ADMIN REGISTER - IMAGE 3 ADMIN LOGIN - IMAGE 4 ADMIN PROFILE - IMAGE 5



  • A page where administrators only can upload a new clothing item

ADMIN ACTIONS DROPDOWN - IMAGE 6 AUTHENTICATION ERROR: MUST BE LOGGED AS ADMIN - IMAGE 7 ITEM UPLOAD - IMAGE 8 ITEM UPLOADED SUCCESSFULLY - IMAGE 9



  • A page where anyone can see all the items uploaded on the website and their leading information

USER ACTIONS DROPDOWN - IMAGE 10 UPLOADED ITEMS - IMAGE 11



  • A page where anyone can enter an ID code of a specific item and see its past transactions provided with the blockchain proof

SEARCH ITEM - IMAGE 12 ITEM INFO - IMAGE 13 ON-CHAIN PROOF - IMAGE 14



  • A page where administrators can change an item's owner

CHANGE ITEM OWNER - IMAGE 15 OWNER CHANGED SUCCESSFULLY - IMAGE 16 ITEM INFO - IMAGE 17 ON-CHAIN PROOF - IMAGE 18



  • A function that alerts administrators when logging into the platform with a different IP address

WARNING: YOUR CURRENT IP ADDRESS IS DIFFERENT FROM THE LAST ONE - IMAGE 19



  • The ability to adapt the website page and content to different types of devices to allow users to have always the best experience

WEBSITE ADAPTATION EXAMPLE - IMAGE 20


🛠️ How to deploy

  • 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 and python3 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 like PONG, 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 typing redis-server.

📈 Improved Skills

Python, Django, Redis, Etherum Goerli Testnet, HTML and Boostrap CSS


👨‍💻 About me

linkedin

About

SecondChance, a website that allows customers of a second-hand clothing marketplace to track the history of an item through the Ethereum blockchain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published