This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Queue":"<insert_queue_arn_here>", | |
"UserMetadata":{}, | |
"Role":"<insert_iam_role_here>", | |
"Settings":{ | |
"TimecodeConfig":{ | |
"Source":"ZEROBASED" | |
}, | |
"OutputGroups":[ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:14.17 | |
WORKDIR /usr | |
COPY package.json ./ | |
COPY tsconfig.json ./ | |
COPY src ./src | |
RUN ls -a | |
RUN yarn install | |
EXPOSE 8000 | |
CMD ["yarn","start"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Stage one: where the app is built | |
FROM node:14.17 AS builder | |
WORKDIR /usr | |
# We copy the necessary files to build our project | |
COPY package.json ./ | |
COPY tsconfig.json ./ | |
COPY src ./src | |
# We build our project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cors from "cors"; | |
import express, { NextFunction, Request, Response } from "express"; | |
import helmet from "helmet"; | |
import { errorHandler } from "./complements/helpers/errorHandler"; | |
import { userRouter } from "./modules/users/users.router"; | |
// Initial Express configuration | |
const app = express(); | |
app.use(express.json()); | |
app.use(helmet()); |