This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| import sys | |
| from PyQt5.QtCore import QUrl, QSize | |
| from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineScript, QWebEnginePage, QWebEngineProfile | |
| from PyQt5.QtWidgets import QToolBar, QAction, QLineEdit, QLabel, QMainWindow, QTabWidget, QApplication | |
| from PyQt5.QtNetwork import QNetworkCookie | |
| import http.cookiejar | |
| def create_script(name, src, injection_point = QWebEngineScript.DocumentCreation, world = QWebEngineScript.MainWorld, on_subframes = True): | |
| script = QWebEngineScript() | |
| script.setSourceCode(src) |
| <?php | |
| class UserRepository | |
| { } | |
| class UserController { | |
| private $userRepository; | |
| public function __construct(UserRepository $repository) | |
| { |
| CREATE TABLE users ( | |
| id INT AUTO_INCREMENT PRIMARY KEY, | |
| username VARCHAR(255) NOT NULL UNIQUE, | |
| password VARCHAR(255) NOT NULL | |
| ); | |
| CREATE TABLE conversations ( | |
| id INT AUTO_INCREMENT PRIMARY KEY, | |
| name VARCHAR(255) NOT NULL, | |
| created_at DATETIME DEFAULT CURRENT_TIMESTAMP |