Skip to content

Commit 5698de2

Browse files
Create termux.md
1 parent 5cdeb16 commit 5698de2

File tree

1 file changed

+151
-0
lines changed

1 file changed

+151
-0
lines changed

termux.md

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
# SQLDatabase Termux Program
2+
3+
![SQLDatabase Termux](https://img.shields.io/badge/SQL--Database%20Termux-Program-blue)
4+
5+
This is a **SQL Database program** designed to run in **Termux** on Android devices. The program allows you to interact with SQL databases directly from your phone using Python. It features a **simple, interactive command-line interface (CLI)** to practice SQL queries, take quizzes, and track your progress.
6+
7+
## **Key Features**
8+
- **💻 Lightweight and Mobile**: Run SQL databases directly on your mobile device via Termux.
9+
- **⚡ Interactive CLI**: Practice and learn SQL commands interactively.
10+
- **📝 SQL Quiz Mode**: Test your knowledge with an interactive quiz.
11+
- **📊 Progress Tracking**: Track your learning progress with visual graphs.
12+
- **🔧 Developer-friendly**: Modify or extend the functionality as needed.
13+
14+
---
15+
16+
## **📋 Requirements**
17+
18+
To run this program on your Android device, you'll need to install **Termux**, set up the environment, and install Python along with the necessary dependencies.
19+
20+
### **1. Install Termux**
21+
22+
Install **Termux** from the following sources:
23+
- [**Google Play Store**](https://play.google.com/store/apps/details?id=com.termux)
24+
- [**F-Droid**](https://f-droid.org/packages/com.termux/)
25+
26+
Once installed, open **Termux** to start the setup.
27+
28+
---
29+
30+
### **2. Set Up the Termux Environment**
31+
32+
#### **🛠️ Update Termux Packages**
33+
Start by updating the Termux package repository to ensure you have the latest version of all packages:
34+
35+
```bash
36+
pkg update
37+
pkg upgrade
38+
```
39+
40+
#### **📦 Install Dependencies**
41+
42+
To run the program, you need to install Python and a few required libraries. Execute the following commands:
43+
44+
```bash
45+
pkg install python
46+
pkg install git
47+
pkg install clang
48+
pkg install libffi-dev
49+
pkg install libssl-dev
50+
pkg install build-essential
51+
```
52+
53+
These packages will set up the Python environment and essential tools for compiling any dependencies.
54+
55+
---
56+
57+
### **3. Install Python**
58+
59+
Python should already be installed when you run `pkg install python`. However, you can check the Python version with:
60+
61+
```bash
62+
python --version
63+
```
64+
65+
You should see Python 3.x.x (e.g., `Python 3.x.x`).
66+
67+
---
68+
69+
### **4. Clone the Repository**
70+
71+
Clone the **SQLDatabase** repository from GitHub:
72+
73+
```bash
74+
git clone https://github.com/mishra9759harshit/sqldatabase.git
75+
```
76+
77+
This command will create a folder named `sqldatabase` in your Termux home directory.
78+
79+
---
80+
81+
### **5. Navigate to the Project Directory**
82+
83+
Move to the `sqldatabase` directory:
84+
85+
```bash
86+
cd sqldatabase
87+
```
88+
89+
---
90+
91+
### **6. Install Python Dependencies**
92+
93+
Install the required Python libraries listed in the `requirements.txt` file. If no `requirements.txt` exists, manually install the necessary packages:
94+
95+
```bash
96+
pip install sqlite3
97+
pip install rich
98+
pip install matplotlib
99+
```
100+
101+
These dependencies are used for the program's SQL functionality, the interactive CLI, and visualizations.
102+
103+
---
104+
105+
### **7. Run the Program**
106+
107+
Now that everything is set up, you can run the program using:
108+
109+
```bash
110+
python run.py
111+
```
112+
113+
This will launch the interactive SQL database program where you can practice queries, take quizzes, and track your progress.
114+
115+
---
116+
117+
## **👨‍💻 Developer Information**
118+
119+
- **Developer**: [Harshit Mishra](mailto:mishra9759harshit@gmail.com)
120+
- **Project Repository**: [GitHub - sqldatabase](https://github.com/mishra9759harshit/sqldatabase.git)
121+
- **License**: MIT License (feel free to contribute or use the code with attribution)
122+
123+
---
124+
125+
## **📩 Contact Information**
126+
127+
- **Email**: [mishra9759harshit@gmail.com](mailto:mishra9759harshit@gmail.com)
128+
- **GitHub Profile**: [mishra9759harshit](https://github.com/mishra9759harshit)
129+
130+
---
131+
132+
## **🔧 Additional Notes**
133+
134+
- The program is designed to run on **Termux**, but you can adapt it for other environments with minor modifications.
135+
- **Future Features**: Support for more databases, advanced query handling, and more interactive modes.
136+
- **Feedback**: If you encounter issues or have suggestions, feel free to open an issue on the GitHub repository.
137+
138+
---
139+
140+
## **🛠️ How to Contribute**
141+
142+
If you want to contribute to this project:
143+
1. **Fork** the repository.
144+
2. **Clone** your fork to your local machine.
145+
3. Make improvements and submit a **pull request**.
146+
147+
---
148+
149+
Thank you for using the **SQLDatabase Termux Program**! We hope it helps you practice and learn SQL directly on your mobile device. 🚀
150+
151+
```

0 commit comments

Comments
 (0)