Created
August 15, 2020 15:07
-
-
Save fredriccliver/da3d5d089d0c0aac94243e05d7cba193 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from "@firebase/app" | |
import "@firebase/auth" | |
import "@firebase/firestore" | |
import express from "express" | |
import * as Config from "./public/config.js" | |
// Initialize Firebase | |
firebase.default.initializeApp(Config.firebaseConfig) | |
const app = express() | |
app.use(express.static("public")) | |
app.get("/", async (req, res) => { | |
res.sendFile("./public/index.html") | |
console.log(!!firebase) | |
}) | |
app.listen(3000, () => { | |
console.log(`listening.`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment