mirror of
https://github.com/supleed2/ELEC60013-ES-CW1.git
synced 2024-09-20 04:16:17 +00:00
16 lines
470 B
Python
16 lines
470 B
Python
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! 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()
|