sms_verification
This project is done for Altech (Schneider Electric Iran) as an educational series.
- پایتون
- فلسک
- ای پی آی های دریافت و ارسال اسمس از درگاه پیامک کاوه نگار
- پاس فندق
- مای اسکوئل
کل ویدئوها رو می تونین از لینک های زیر ببینین.
Every single step of this project is screen captures and you can follow them On youtube or On Aparat.
How to run
- Install python3, pip3, virtualenv, MySQL in your system.
- Clone the project
git clone https://github.com/jadijadi/sms_serial_verification && cd sms_serial_verification
- in the app folder, rename the
config.py.sample
toconfig.py
and do proper changes. - db configs are in config.py. Create the db and grant all access to the specified user with specified password.
- Create a virtualenv named venv using
virtualenv -p python3 venv
- Connect to virtualenv using
source venv/bin/activate
- From the project folder, install packages using
pip install -r requirements.txt
- Now environment is ready. Run it by
python app/main.py
Example of creating db and granting access:
Note: this is just a sample. You have to find your own systems commands.
CREATE DATABASE smsmysql;
USE smsmysql;
CREATE USER 'smsmysql'@'localhost' IDENTIFIED BY 'test' PASSWORD NEVER EXPIRE;
GRANT ALL PRIVILEGES ON smsmysql.* TO 'smsmysql'@'localhost';