mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-19 09:44:52 +00:00
Add highscores server
This commit is contained in:
parent
b6dc53dfaa
commit
d7be76f435
9 changed files with 29 additions and 33 deletions
17
Highscore-Server/highscore/server.py
Normal file
17
Highscore-Server/highscore/server.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from flask import Flask
|
||||
from flask_migrate import init as migrate_init
|
||||
from extensions import db, migrate, cache
|
||||
from views import blueprint
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_pyfile('config.py')
|
||||
|
||||
db.init_app(app)
|
||||
migrate.init_app(app, db)
|
||||
cache.init_app(app)
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
migrate_init()
|
||||
|
||||
app.register_blueprint(blueprint)
|
Loading…
Add table
Add a link
Reference in a new issue