Skip to content

hosseinhabibi2004/arabyyar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArabyYar


ArabyYar a browser-based app for learning Arabic simple - v1.0.1


📝 Table of Contents


🏁 Getting Started

After cloning the project install python required libraries using this command:

pip install -r requirements.txt

Now you can run the project by starting app.py

python app.py

🗜 Complie To Exe

For running the application on other devices with Windows operating system without installing Python and other requirements we need to compile the program to exe.

We need Pyinstaller library for converting py to exe:

pip install pyinstaller

Working with Pyinstaller is not hard but we can make it even easier using Auto-py-to-exe :

pip install auto-py-to-exe

After installing auto-py-to-exe open cmd and run auto-py-to-exe:

auto-py-to-exe

Replace below code in settings.py:

import sys
Web_Template_Folder = '\\'.join((sys._MEIPASS.replace('/', '\\'), 'Web\\media\\templates', ))
Web_Static_Folder = '\\'.join((sys._MEIPASS.replace('/', '\\'), 'Web\\media\\static', ))

Replace Below Code instead of app = Flask(__name__, template_folder=settings.Web_Template_Folder, static_folder=settings.Web_Static_Folder) in Web/__init__.py :

import sys
if getattr(sys, 'frozen', False):
    app = Flask(__name__, template_folder=settings.Web_Template_Folder, static_folder=settings.Web_Static_Folder)
else:
    app = Flask(__name__)

Use this command for start converting py to exe: (Use --onefile for one file exe | Use --onedir for exe in one directory)

pyinstaller --noconfirm --onefile --windowed --icon "<ICO File Address>" --name "Araby Yar" --add-data "<settings.py address>;." --add-data "<Desktop Directory Address>;Desktop/" --add-data "<Web Directory Addres>;Web/"  "<app.py Address>"

⛏️ Built Using

Python - An interpreted, high-level and general-purpose programming language

  • Flask - Micro web framework written in Python
  • PyArabic - A specific Arabic language library
  • libqutrub - Arabic verb conjugation software
  • PyQt5 - PyQt5 is a comprehensive set of Python bindings for Qt v5

JavaScript - A programming language that conforms to the ECMAScript specification

  • Alertify - A framework for developing pretty browser dialogs and notifications.
  • jQuery - A Library designed to simplify HTML DOM tree traversal and manipulation
  • Bootstrap - A free and open-source CSS framework directed at responsive, mobile-first front-end web development.

✍️ Authors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published