3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 07:35:02 +00:00

Initial dashboard work (auth flow)

This commit is contained in:
Dragory 2019-05-26 00:13:42 +03:00
parent 9109e9a2c3
commit c94c8849a5
18 changed files with 3808 additions and 31 deletions

View file

@ -0,0 +1,19 @@
require("dotenv").config();
import express from "express";
import initAuth from "./auth";
import { connect } from "../../data/db";
console.log("Connecting to database...");
connect().then(() => {
const app = express();
initAuth(app);
app.get("/", (req, res) => {
res.end("Hi");
});
const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`API server listening on port ${port}`));
});