In the latter part of 2023, the Nigerian market experienced an alarming surge in counterfeit products, spanning various categories such as food, beverages, healthcare, and more. Recognizing the severity of this issue, I embarked on a mission to develop a solution that would empower consumers to distinguish between authentic and fake products. Identifying the Problem
Counterfeit products pose a significant threat to public health and safety. The need for a reliable and accessible system for product authenticity verification became apparent as unsuspecting consumers continued to fall victim to counterfeit goods. This challenge fueled my determination to create a tool that would provide consumers with instant authenticity detection.
After thorough consideration of various technological solutions, the QR code emerged as the most practical and efficient method for product authenticity verification. Here's why:
- Ease of Scanning: QR codes are easily scannable using smartphones, making it accessible for a wide range of users.
- Simplicity in Generation: Generating QR codes is a straightforward process, ensuring that businesses can seamlessly incorporate them into their product packaging.
AuthentiCheck, a robust Django web application, is tailored to empower business owners in effectively combating the counterfeit product crisis. Here's a concise overview:
Business Profile Creation: Businesses can establish their profiles within the application, with each owner receiving a unique secret code for heightened security.
Product Management: Business owners can define and manage various products, assigning a unique identifier for each product. Additionally, each product is given a shelf life, a crucial factor used to determine the likely expiry date of each product instance.
Product Instances: Instances of each product feature manufacturing and expiry dates, providing crucial information for consumers.
QR Code Generation: To encode the data, the business secret code, product unique code, and the product instance unique identifier undergo a secure algorithmic process. The encoded data is then transformed into QR codes, offering a visual representation of the product's authenticity. The use of cryptographic keys ensures that only authorized entities can generate valid QR codes, fortifying the system against counterfeit attempts.
Follow these steps to set up and run the application locally:
-
Clone the repository:
git clone https://github.com/Afeez1131/Product-validator
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the project root and set the required environment variables. Refer to the example.env file for reference. -
Apply database migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Load temp data into the DB by running
python manage.py load_data --count 200 # no of records you want created
-
Open your browser and navigate to http://localhost:8000 to access the application.
- Name: Lawal Afeez
- GitHub: lawalafeez
- LinkedIn: Lawal Afeez
This project is licensed under the MIT License.
Feel free to contribute, report issues, or reach out to the developer via Email!