mirror of
https://github.com/supleed2/ELEC60013-ES-CW1.git
synced 2024-12-22 21:45:48 +00:00
Added Firebase to project
This commit is contained in:
parent
09b55f9275
commit
e4bfb40c1a
8
app.py
8
app.py
|
@ -1,11 +1,15 @@
|
|||
from flask import Flask
|
||||
|
||||
import firebase_admin
|
||||
from firebase_admin import credentials
|
||||
from firebase_admin import firestore
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello_world(): # put application's code here
|
||||
return 'Hello World!'
|
||||
|
||||
return 'Hello World! I am the dog you tracked with the amazing sensor from LEG industries...kidding this is just the home page :)'
|
||||
|
||||
if __name__ == '__main__':
|
||||
firebase_admin.initialize_app(credentials.Certificate('firebase-key.json'))
|
||||
app.run()
|
||||
|
|
Loading…
Reference in a new issue