mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Implemented storage system, & initializing node modules.
This commit is contained in:
5
pyShelf.py
vendored
5
pyShelf.py
vendored
@@ -5,10 +5,11 @@ import sys
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from src.backend.lib.config import Config
|
from src.backend.lib.config import Config
|
||||||
|
from src.backend.lib.storage import Storage
|
||||||
from src.backend.pyShelf_MakeCollections import MakeCollections
|
from src.backend.pyShelf_MakeCollections import MakeCollections
|
||||||
from src.backend.pyShelf_ScanLibrary import execute_scan
|
from src.backend.pyShelf_ScanLibrary import execute_scan
|
||||||
from src.frontend.lib.FastAPIServer import FastAPIServer
|
from src.frontend.lib.FastAPIServer import FastAPIServer
|
||||||
from src.frontend.lib.objects import FastAPIServer
|
from src.frontend.lib.objects import JSInterface
|
||||||
# import websockets
|
# import websockets
|
||||||
|
|
||||||
|
|
||||||
@@ -29,6 +30,8 @@ def run_import():
|
|||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
"""Program entrypoint."""
|
"""Program entrypoint."""
|
||||||
|
JSInterface(config=config).install()
|
||||||
|
Storage(config=config).create_tables()
|
||||||
_import_thread = Thread(target=run_import)
|
_import_thread = Thread(target=run_import)
|
||||||
_import_thread.start()
|
_import_thread.start()
|
||||||
fe_server = FastAPIServer(config)
|
fe_server = FastAPIServer(config)
|
||||||
|
|||||||
Reference in New Issue
Block a user