const express = require("express");
const app = express();
const port = process.env.PORT || 8080;

app.get("/", (req, res) => {
  res.send("Hello World! Appleboy");
});

app.get("/user", function(req, res) {
  res.status(200).json({ name: "appleboy" });
});

// listen 8080 port
app.listen(port);
console.log("Listening on port " + port);

module.exports = app; // for testing

const express = require("express");
const app = express();
const port = process.env.PORT || 8080;

app.get("/", (req, res) => {
  res.send("Hello World! Appleboy Dockefile");
});

app.get("/user", function(req, res) {
  res.status(200).json({ name: "appleboy" });
});

// listen 8080 port
app.listen(port);
console.log("Listening on port " + port);

module.exports = app; // for testing

add dockerfile