Compare commits

..

1 Commits

Author SHA1 Message Date
victor
b87145654a .env and test on server.py 2025-01-19 23:26:17 +01:00
3 changed files with 12 additions and 6 deletions

5
.env Normal file
View File

@@ -0,0 +1,5 @@
DB_USERNAME=new_user
DB_PASSWORD=password
DB_HOST=localhost
DB_PORT=3306
DB_NAME=UseCaseDB

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
.venvManjaro/
app/__pycache__/
app/models/__pycache__/
app/codes/__pycache__/
app/codes/__pycache__/
migrations/*

View File

@@ -5,11 +5,11 @@ app = create_app()
@app.route('/', methods = ['GET'])
def index():
userId = session.get('userId')
if userId:
return "test"
else:
return "test"
userId = session.get('userId')
if userId:
return "test"
else:
return "test"
if __name__ == "__main__":
app.run(debug=True, port="8080")