project setup additions

This commit is contained in:
aminamos
2020-04-07 08:23:39 -07:00
parent 485cc93774
commit 7829a84bac
3 changed files with 55 additions and 3 deletions

View File

@@ -35,6 +35,11 @@ server.use("/service-worker.js", (req, res) =>
);
server.use(router);
server.listen(3000, () => {
console.log("JSON Server is running on port 3000");
});
// server.listen(3000, () => {
// console.log("JSON Server is running on port 3000");
// });
// allow for port 3001
const port = process.env.PORT || 3000
server.listen(port, () => {
console.log(`JSON Server is running on port ${port}`);
});