Skip to content

Commit

Permalink
Add infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldesante committed May 20, 2022
1 parent 28be788 commit de5a765
Show file tree
Hide file tree
Showing 6 changed files with 1,577 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/**/.DS_Store
/**/node_modules
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:18

WORKDIR /app

COPY package*.json /app
RUN npm ci

COPY . /app

EXPOSE 8080
CMD [ "node", "index.js"]
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import express from "express";
import logger from "express-simple-logger";
import routes from "./routes.js";

const PORT = 8080;
const app = express();

app.use(logger());
app.use("/api", routes);

app.listen(PORT, () => {
console.log(`Listening on port ${PORT}`);
});
Loading

0 comments on commit de5a765

Please sign in to comment.