#index.py
import sys
from routes.frontend import index

app = index.app

if sys.platform == 'win32':
    app.run(host='localhost', port=7000, debug=True, reloader=True)

 

#routes/frontend/index.py
from bottle import Bottle

app = Bottle()

@app.route('/')
def index():
    return 'ទំព័រ​ដើម'

 

GitHub: https://github.com/Sokhavuth/khmerweb-multimedia

Vercel: https://khmerweb-multimedia.vercel.app/