Skip to content

Smartcard System built with arduino, python, flask, twilio and postgresql

Notifications You must be signed in to change notification settings

lavsharmaa/smartcardsystem-arduino-python

Repository files navigation

Smart Card System with Arduino & Flask

Table of contents

Overview

Due to Pandemic and even before the COVID-19 pandemic, contactless payments were already a widely used payment method. There are very high chances that you lose the track of your expenditures while dealing with cash. People tend to rely more on online/contactless payment methods than traditional methods of transacting with cash. It helps the customer as well as the store to keep the record of all the transactions occurring throughout the system. In addition to that there are less chances of your cash getting robbed. Smart Card System is such a unique website which works with the help of Arduino. RFID cards are used in the system which stands uniquely among each other due to its distinct identification number. It will act as a unique identity to every user in the system. In this website, login and register for both admin and user, add card, block/activate card, create payment, load balance functionalities are added for better user interaction.


With the Smart Card System you can :
🔽 Register & Login into the system.
🔽 Get details about your card and transactions..
🔽 Activate/Block your card for security purpose.
🔽 Store/Admin login.
🔽 Add Card, Load balance, Payment Gateaway at Store/Admin side.

Functionalities Screenshot :

🔽 User Registration
🔽 User Login
🔽 User Dashboard
🔽 Forgot Password
🔽 Store/Admin Login
🔽 Store/Admin Dashboard
🔽 Create Payment
🔽 OTP Received on Phone
🔽 Enter OTP
🔽 Payment Unsuccessful 1
🔽 Payment Unsuccessful 2
🔽 Payment Successful
🔽 Add Card
🔽 Load Balance
🔽 User DB
🔽 Store/Admin DB
🔽 Transactions DB
🔽 Cards DB

Built With

Python Flask Twilio HTML CSS PostgreSQL

Getting Started

Step 1:

Download or clone this repository by using the command given below:

git clone https://github.com/lavsharmaa/ccl-mini-project.git

Step 2:

Go to project root and create a python environment using the below comamnd:

# For windows
python -m venv pyenv

# For Linux
python3 -m venv pyenv

# Alternate for Linux
pip install virtualenv

virtualenv pyenv

Step 3:

Activate your python environment using the below comamnd:

# For windows
pyenv\Scripts\activate

# For Linux
source pyenv/bin/activate

Step 4:

Install the dependencies using the below comamnd:

# For windows
pip install -r windows_requirements.txt

# For Linux
pip3 install -r linux_reuirements.txt

Step 5:

Since we have used twilio for messaging API you need to signup at Twilio and register for the MessagingAPI:

You will need in total 3 keys

  1. Account SID
  2. Auth Token
  3. Messaging API

which you need to put in the app.py file

Step 6:

For setting up the database we used postgresql and pgadmin4

# default values, might change for your system
host = "localhost"
dbname = "postgres"
user = "postgres"
password = "root"

Step 7:

Run flask using the below command:

python app.py

Load the website at localhost:5000

Contributors

  • Samuel Monteiro
    Linkedin Github
  • Lav Sharma
    Linkedin Github
  • Rutuja Bhate
    Linkedin Github

About

Smartcard System built with arduino, python, flask, twilio and postgresql

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published