Termux पर Website बनाएं, Localhost चलाएं, और वेबसाइट होस्ट करें
Termux पर Web Server इनस्टॉल करें
📱 ब्राउज़र में: http://localhost:8080 खोलें
Node.js से Express Server चलाएं
const express = require("express");
const app = express();
const PORT = 3000;
app.get("/", (req, res) => {
res.send("Hello from Termux Node.js!");
});
app.listen(PORT, "0.0.0.0", () => {
console.log(`Server running on http://0.0.0.0:${PORT}`);
});EOFHTML, CSS, JavaScript फाइलें बनाएं
mywebsite/ ├── index.html ├── styles.css ├── script.js └── assets/ ├── images/ └── fonts/
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="styles.css"> <title>My Website</title> </head> <body> <h1>Hello from Termux!</h1> <p>Building websites on Android.</p> <script src="script.js"></script> </body> </html>
MySQL, PostgreSQL, SQLite डेटाबेस का उपयोग करें
PHP में: new SQLite3('mydb.db')
Professional Nginx Server चलाएं
वेबसाइट को ऑनलाइन होस्ट करें
सिर्फ Educational Purpose के लिए सीखें। किसी भी Website को Hack करने की कोशिश न करें। सिर्फ अपनी वेबसाइट बनाएं और Hosting सीखें।