Skip to content

Commit

Permalink
Add charts in report
Browse files Browse the repository at this point in the history
  • Loading branch information
Chapizze committed Dec 11, 2024
1 parent 80f07ac commit 9a04a4f
Show file tree
Hide file tree
Showing 8 changed files with 422 additions and 38 deletions.
14 changes: 12 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
FROM node:18-alpine
FROM node:18

RUN mkdir -p /app
WORKDIR /app
COPY package*.json ./
RUN apk --no-cache add --virtual builds-deps build-base python3 git
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
libpixman-1-dev \
libpangomm-1.4-dev \
libfreetype6-dev \
python3 \
git
RUN npm install
COPY . .
EXPOSE 4242
Expand Down
14 changes: 12 additions & 2 deletions backend/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
FROM node:18-alpine
FROM node:18

RUN mkdir -p /app
WORKDIR /app
COPY package*.json ./
RUN apk --no-cache add --virtual builds-deps build-base python3 git
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
libpixman-1-dev \
libpangomm-1.4-dev \
libfreetype6-dev \
python3 \
git
RUN npm install
COPY . .
ENV NODE_ENV dev
Expand Down
14 changes: 12 additions & 2 deletions backend/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
FROM node:18-alpine
FROM node:18

RUN mkdir -p /app
WORKDIR /app
COPY package*.json ./
RUN apk --no-cache add --virtual builds-deps build-base python3 git
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
libpixman-1-dev \
libpangomm-1.4-dev \
libfreetype6-dev \
python3 \
git
RUN npm install
COPY . .
ENV NODE_ENV test
Expand Down
4 changes: 3 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "pwndoc backend",
"productName": "pwndoc",
"author": "Stanley HAMMER",
"author": "Chapizze - Stanley HAMMER",
"scripts": {
"start": "node src/app.js",
"dev": "nodemon src/app.js",
Expand All @@ -22,6 +22,8 @@
"angular-expressions": "^1.2.1",
"bcrypt": "^5.1.1",
"body-parser": "^1.20.2",
"chart.js": "^3.5.1",
"chartjs-node-canvas": "^4.1.6",
"cookie-parser": "^1.4.6",
"docx": "^7.8.2",
"docx-templates": "^4.13.0",
Expand Down
Binary file modified backend/report-templates/Default Template.docx
100755 → 100644
Binary file not shown.
Loading

0 comments on commit 9a04a4f

Please sign in to comment.