This website has two parts. The first part is accessible by the domain name and is used to showcase who I am and some of the projects I am working on.
The second part of this website is a comic book database that I have developed myself.
Append '/comicBase' to the end of the domain to access this
Eventually there will be a "playground" setting so other users can look at it.
comicBase is a comic book database I have developed to cut down on the number of same issues I am buying while in store. Also because it I thought it would be fun to make. It is running on an Amazon lightsail instance running Ubuntu 16.04.
I am using these to run comicBase:
- Apache
- Flask
- SQLite3
This would only happen when running on localhost
- initialize the database (only do this once)
$ python3 init_db.py
- start the site (localhost)
$ python3 __init__.py
When init_db.py
is run
-
The following tables are created.
CREATE TABLE Comics ( comic_id integer primary key autoincrement, vol_id integer not null, issue_num integer not null, -- issue number title varchar(100), arc varchar(50), -- story line price float, -- how much I paid/ FOREIGN KEY (vol_id) REFERENCES Volumes(vol_id) ); CREATE TABLE Publishers ( pub_id integer primary key autoincrement, pub_name varchar(50) not null unique ); -- could make this into a "information about the volume" kind of thing CREATE TABLE Volumes ( vol_id integer primary key autoincrement, pub_id integer not null, vol_name varchar(50) not null, vol_number varchar(10) not null, month_start varchar(3), -- according to cover date year_start integer, month_end varchar(7), -- ongoing year_end integer, -- "" means ongoing link varchar(100), -- link to comicbookdb.com's volume page UNIQUE (vol_name, vol_number), FOREIGN KEY (pub_id) REFERENCES Publishers(pub_id) );
This option adds a publisher into the Publishers table.
To add a volume into the Volumes table, it's Publisher must already be in the Publishers table as that field is filled by a dropdown of existing publishers.
To add a comic into the Comics table, it's volume must already be in the Volumes table as that field is filled by a dropdown of existing volumes.
Deletes the comic from Comics table based on the id.
The page displays all the comics in the database.
Displays all the volumes in the Volumes table routing to a table of the comics in that volume once clicked.
Dropdown that allows for comics, volumes, and publishers to be added to the database.
Was implemented before database schema redesign. Will eventually be added back in.
Dropdown allowing the user to access account details
Still testing. Working on being able to send csv's of database info to local computer.