A minimalistic blogging platform because I am sick and tired of finding a blogging platform that is not bloated with unnecessary features. Bottle(a microframework for Python) is required for this project
config = {
'user': 'YourMySQLuser',
'password': 'YourMySQL user password',
'host': 'localhost',
'port': '3306',
'database': 'DatabaseName',
'raise_on_warnings': True,
}
firebaseConfig= {
"apiKey": "[getFromFireBaseConsole]",
"authDomain": "[domaingetfromfirebaseconsole].firebaseapp.com",
"databaseURL": "https://url",
"projectId": "[project-id-fromfirebaseConsole]",
"storageBucket": "[ifany]",
"messagingSenderId": "[Firebase Console Numeric Digits]",
"appId": "[Your app Id]"
}
CREATE TABLE `Comments` (
`guid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`dateCreated` datetime DEFAULT CURRENT_TIMESTAMP,
`commenttext` mediumtext NOT NULL,
`userguid` varchar(200) NOT NULL,
`postguid` varchar(200) NOT NULL,
`email` varchar(100) NOT NULL,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `Posts` (
`guid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(100) CHARACTER SET latin1 NOT NULL,
`articleText` longtext NOT NULL,
`dateCreated` datetime DEFAULT CURRENT_TIMESTAMP,
`dateUpdated` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`createdBy` varchar(200) NOT NULL,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `Likes` (
`guid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userguid` varchar(200) NOT NULL,
`postguid` int(10) unsigned NOT NULL,
`dateCreated` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;