replace python django backend with nodejs backend

This commit is contained in:
wea_ondara
2024-05-27 18:59:58 +02:00
parent ebd0748894
commit 8b60d023e8
123 changed files with 15193 additions and 88 deletions

17
ai/main.py Normal file
View File

@@ -0,0 +1,17 @@
import os
import sys
def main(*args):
from server import Server
args = [a for a in args]
port = args.index('--port') if '--port' in args else -1
port = int(args[port + 1]) if port >= 0 and port + 1 < len(args) else None
Server().serve(port=port)
if __name__ == '__main__':
print(os.getcwd())
main(*sys.argv)