boronflex / project-2-team-4

Project 2 team 4 Houston coding bootcamp September class
1 stars 3 forks source link

server setup #9

Open brandongatlin opened 6 years ago

brandongatlin commented 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.