Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+ @app.get("/")
6
+ def greet_json():
7
+ return {"Hello": "GWBASIC!"}
8
+
9
+
10
+ import subprocess
11
+
12
+ def run_emulator():
13
+ subprocess.run([
14
+ "java",
15
+ "-cp", "target/scala-2.13/javapc-assembly-0.431.jar",
16
+ "org.ldaniels528.javapc.ibmpc.app.IbmPcEmulator"
17
+ ])
18
+
19
+ run_emulator()