~jordan31/personal_website

59492662ff05fcf0e79fb1d99b272b239ebf66db — Jordan 9 months ago 9c23a05
populated with basic files and files needed for heroku deployment
6 files changed, 47 insertions(+), 0 deletions(-)

A .gitignore
A Procfile
A package.json
A public/index.html
A public/styles.css
A server.js
A .gitignore => .gitignore +5 -0
@@ 0,0 1,5 @@
#gitignore

node_modules
package-lock.json
fontawesome-free-5.14.0-web

A Procfile => Procfile +1 -0
@@ 0,0 1,1 @@
web: node server.js

A package.json => package.json +18 -0
@@ 0,0 1,18 @@
{
  "name": "crowesnest.io",
  "version": "1.0.0",
  "description": "personal landing page",
  "main": "server.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git@git.sr.ht:~jordan31/personal_website"
  },
  "author": "Jordan",
  "license": "ISC",
  "dependencies": {
    "express": "^4.17.1"
  }
}

A public/index.html => public/index.html +8 -0
@@ 0,0 1,8 @@
<!DOCTYPE html>
<head>
<title>CrowesNest</title>
</head>
<body>
<h1>Welcome to the not started from scratch again crowesnest.io</h1>
</body>
</html>

A public/styles.css => public/styles.css +0 -0
A server.js => server.js +15 -0
@@ 0,0 1,15 @@
// server.js
const express = require('express');
const app = express();
//const port = process.ev.PORT;

app.use(express.static("public"));

// Set up home route
app.get('/', (req, res) => {
  res.send('This is the homepage');
});

app.listen(process.env.PORT || 3000, () => {
  console.log(`Success! Your application is running.`);
});