Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.25 KB

readme.md

File metadata and controls

58 lines (40 loc) · 1.25 KB

Chess 'i Guess

made with:

Design

minimal and sleek

run with . venv/bin/activate && python app.py

Theming

img_1.png

colors, Picks the black, a random colourful one and uses plain white #111420, #ee1e0b, #eee52f, #17cc26, #2b68d9, #9828b6

{"Rich black":"111420","Off Red":"ee1e0b","Aureolin":"eee52f","Lime green":"17cc26","Celtic Blue":"2b68d9","Dark violet":"9828b6"}

Testing

The best way to test Quart is with Tox,

$ pip install tox
$ tox

A minimal Quart example is,

from quart import Quart, render_template, websocket

app = Quart(__name__)

@app.route("/")
async def hello():
    return await render_template("index.html")

@app.route("/api")
async def json():
    return {"hello": "world"}

@app.websocket("/ws")
async def ws():
    while True:
        await websocket.send("hello")
        await websocket.send_json({"hello": "world"})

if __name__ == "__main__":
    app.run()