File size: 624 Bytes
fb4bfd0
 
215f78b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#agentic employment

import subprocess
import os

def start_backend():
    os.chdir(os.path.dirname(__file__))
    subprocess.run(["uvicorn", "backend.app.main:app", "--reload", "--host", "0.0.0.0", "--port", "8000"])

def start_frontend():
    os.chdir(os.path.dirname(__file__))
    subprocess.run(["python", "-m", "frontend.main"])

if __name__ == "__main__":
    from multiprocessing import Process

    backend_process = Process(target=start_backend)
    backend_process.start()

    frontend_process = Process(target=start_frontend)
    frontend_process.start()

    backend_process.join()
    frontend_process.join()