Open brandongatlin opened 6 years ago
setup the server to require the following:
const express = require("express"); const methodOverride = require("method-override"); const bodyParser = require("body-parser"); const routes = require("./controllers/burgers_controller.js") const app = express(); var exphbs = require("express-handlebars");
const port = 3000;
(we'll change the port later, I'm sure)
also include this line of code: app.use(express.static(path.join(__dirname, '/public')));
finally, do a console log the says the server is running on port 3000.
setup the server to require the following:
const express = require("express"); const methodOverride = require("method-override"); const bodyParser = require("body-parser"); const routes = require("./controllers/burgers_controller.js") const app = express(); var exphbs = require("express-handlebars");
const port = 3000;
(we'll change the port later, I'm sure)
also include this line of code: app.use(express.static(path.join(__dirname, '/public')));
finally, do a console log the says the server is running on port 3000.