aymanemalih commited on
Commit
2baf1c8
·
verified ·
1 Parent(s): a6fe51e

Upload 2 files

Browse files
Files changed (2) hide show
  1. requirements.txt +4 -0
  2. run.py +11 -0
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ flask
2
+ flask_sqlalchemy
3
+ flask_bcrypt
4
+ Flask-JWT-Extended
run.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from app import create_app
2
+ from app import db
3
+ from app.models import Question # ou 'import app.models' selon ton organisation
4
+
5
+ app = create_app()
6
+
7
+ with app.app_context():
8
+ db.create_all() # Crée toutes les tables qui n'existent pas encore
9
+
10
+ if __name__ == '__main__':
11
+ app.run(debug=True)