Added HTTP server and response

This commit is contained in:
Raelon Masters
2019-10-31 22:14:34 -04:00
parent eb59ac439a
commit ce93050b7f
8 changed files with 133 additions and 16 deletions

View File

@@ -4,15 +4,17 @@ import sys
from config import Config
from lib.library import Catalogue
from lib.pyShelf import InitFiles
from lib.pyShelf import BookServer
sys.path.insert(1, 'lib/')
# sys.path.insert(1, 'lib/')
config = Config() # Get configuration settings
InitFiles(config.file_array) # Initialize file system
Catalogue = Catalogue() # Open the Catalogue
Server = BookServer()
# new_books = Catalogue.new_files()
Catalogue.import_books() # Filter Your books
Server.run()
# TODO Figure out a system to get books page count
# TODO Update Documentation
# TODO Requirements.txt