This project is done for ghameh_dovom_enghelab classes as a project series.
-
Install python3, pip3, virtualenv, MySQL in your system.
-
Clone the project
https://github.com/rapexa/ghameh_dovom_enghelab.git
&& cd sms_serial_verification -
in the app folder, rename the
config.py.sample
toconfig.py
and do proper changes. -
run this comand in MYSQL database :
CREATE DATABASE myworks;
-
run this comand in MYSQL database :
CREATE USER 'myworks'@'localhost' IDENTIFIED BY 'works';
-
run this comand in MYSQL database :
GRANT ALL PRIVILEGES ON myworks.* TO 'myworks'@'localhost';
-
run this comand in MYSQL database :
DROP TABLE IF EXISTS works
-
db configs are in config.py. Create the db and grant all access to the specified user with specified password, but you also need to add this table to the database manually:
CREATE TABLE works (name VARCHAR(100),title VARCHAR(100),message VARCHAR(250));
-
Create a virtualenve named build using
virtualenv -p python3 venv
-
Connect to virtualenv using
source venv/bin/activate
-
From the project folder, install packages using
pip install -r ./app/requirements.txt
-
Now environment is ready. Run it by
python app/main.py
-
get service from some where that got pas service in this project i got service from
https://fandogh.cloud/
. -
buy for your
fandogh
service1024mb
ram . -
make service for mysql and fill the blanks like this : name :
db
, pass :works
, ram :512mb
and gotphpmyadmin
GUI service for it. -
goto
https://db-hologram.fandogh.cloud/server_databases.php
page for your MYSQL service. -
in this page create database by : Database_name :
myworks
, Codeing :utf8mb4_bin
and pushcreate
button. -
choose the
smsmysql
in databases list and in this database chooseSQL
and copy in that editorCREATE TABLE works (name VARCHAR(100),title VARCHAR(100),message VARCHAR(250));
and pushgo
button. -
goto to
https://docs.fandogh.cloud/docs/getting-started.html
page for how to deploy project there. -
in your commmand line in
How to run : TODO : 10
-
copy
pip install fandogh_cli
in your command line run by (venv). -
copy and fill in the requrment variable in this text
fandogh login --username=YOUR_USERNAME --password=YOUR_PASSWORD
in your command line run by (venv). -
for makeing iso file from your project to run in your
fandogh service
copy :fandogh image init --name=app
in your command line run by (venv). -
for makeing workspace in your
fandogh service
to deploying your version 0.1 of your project in next step tofandogh service
copyfandogh image publish --version v0.1
in your command line run by (venv). -
for deploying your version 0.1 of your project in
fandogh service
copyfandogh service deploy --version v0.1 --name app
in your command line run by (venv). -
now you can check your
fandogh service
Dashbourd for makeing sure that you make your own deployed service name app. -
if you make your service named
app
in yourfandogh service
edit app service ram to :512mb
ad pushdone makeing
button in bottom of the page. -
now you can see your project in
https://app-hologram.fandogh.cloud/
Domin