Skip to content

Commit

Permalink
feat: post pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Abh1noob committed Jun 15, 2024
1 parent 91c506b commit 917a7e6
Show file tree
Hide file tree
Showing 5 changed files with 509 additions and 35 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Step 1: Specify the base image
FROM node:22

# Step 2: Set the working directory inside the container
WORKDIR /app

# Step 3: Copy package.json and package-lock.json files
COPY package*.json ./

# Step 4: Install dependencies
RUN npm install

# Step 5: Copy the rest of the application code
COPY . .

# Step 6: Expose the port the application runs on
EXPOSE 3000

# Step 7: Define the command to run the application
CMD ["npm","run","dev"]
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@
},
"dependencies": {
"@t3-oss/env-nextjs": "^0.10.1",
"axios": "^1.7.2",
"file-saver": "^2.0.5",
"geist": "^1.3.0",
"next": "^14.2.1",
"gridfs-stream": "^1.1.1",
"mongodb": "^6.7.0",
"multer": "1.4.5-lts.1",
"next": "^14.2.4",
"pdf-lib": "^1.17.1",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"react-dropzone": "^14.2.3",
"zod": "^3.23.3"
},
"devDependencies": {
"@types/eslint": "^8.56.2",
"@types/file-saver": "^2.0.7",
"@types/node": "^20.11.20",
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19",
Expand Down
Loading

0 comments on commit 917a7e6

Please sign in to comment.