diff --git a/backend/server.js b/backend/server.js new file mode 100644 index 00000000..11774f80 --- /dev/null +++ b/backend/server.js @@ -0,0 +1,19 @@ +const express = require("express"); +const app = express(); + +const PORT = process.env.PORT || 5000; +cd +// Middleware +app.set('view engine', 'ejs'); + +app.get('/', (req, res) => { + res.send("Hello World"); +}) + +app.get('/login', (req, res) => { + res.render('../login') +}) + +app.listen(PORT, () => { + console.log(`Server running on port ${PORT}`) +}) \ No newline at end of file diff --git a/frontend/html/login.ejs b/frontend/html/login.ejs index bc4b9a27..af0293f5 100644 --- a/frontend/html/login.ejs +++ b/frontend/html/login.ejs @@ -1,9 +1,45 @@ -<% var title = 'Login – Nginx Proxy Manager' %> -<%- include partials/header.ejs %> - -
+
+ + Sindre Sorhus' open source work is supported by the community on GitHub Sponsors and Dev + +
+ Special thanks to: +