Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adeaga_female_dev_grant #1084

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DevGrants/adeaga_Grant/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app.js
25 changes: 25 additions & 0 deletions DevGrants/adeaga_Grant/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const express = require("express");
const cors = require("cors");

//start app
const app = express();

// Read .css, .js etc
app.use(express.static(__dirname + "/static"));

// Set ejs config
app.set("view engine", "ejs");

// Middlewares
app.use(cors());
app.use(express.json());

//Routes
app.get("/", (req, res) => {
res.render("index");
});

// Listening to port 3000
const port = process.env.PORT || 3000;

app.listen(port, () => console.log(`Server is listening on port ${port}`));
Loading