Skip to content

Commit 14e6d0e

Browse files
Merge pull request #22 from monicasmith463/feature/frontend-new-boilerplate
Frontend: new boilerplate containerized
2 parents 53864c9 + 365f766 commit 14e6d0e

File tree

368 files changed

+18412
-12922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

368 files changed

+18412
-12922
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules/
44
/playwright-report/
55
/blob-report/
66
/playwright/.cache/
7+
.DS_Store

docker-compose.override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ services:
9595
frontend:
9696
restart: "no"
9797
ports:
98-
- "5173:80"
98+
- "5173:3000"
9999
build:
100100
context: ./frontend
101101
args:

frontend/.dockerignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

frontend/.env

Lines changed: 0 additions & 2 deletions
This file was deleted.

frontend/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

frontend/.gitignore

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
1-
# Logs
2-
logs
3-
*.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/.idea
5+
/node_modules
6+
/.pnp
7+
.pnp.js
8+
.yarn/install-state.gz
9+
10+
# testing
11+
/coverage
12+
13+
# next.js
14+
/.next/
15+
/out/
16+
17+
# production
18+
/build
19+
20+
# misc
21+
.DS_Store
22+
*.pem
23+
24+
# debug
425
npm-debug.log*
526
yarn-debug.log*
627
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
openapi.json
15-
16-
# Editor directories and files
17-
.vscode/*
18-
!.vscode/extensions.json
19-
.idea
20-
.DS_Store
21-
*.suo
22-
*.ntvs*
23-
*.njsproj
24-
*.sln
25-
*.sw?
26-
/test-results/
27-
/playwright-report/
28-
/blob-report/
29-
/playwright/.cache/
30-
/playwright/.auth/
28+
29+
# local env files
30+
.env*.local
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts

frontend/.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/Dockerfile

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
1-
# Stage 0, "build-stage", based on Node.js, to build and compile the frontend
2-
FROM node:24 AS build-stage
1+
FROM node:24
32

43
WORKDIR /app
54

6-
COPY package*.json /app/
7-
5+
COPY package*.json ./
86
RUN npm install
97

10-
COPY ./ /app/
11-
12-
ARG VITE_API_URL=${VITE_API_URL}
8+
COPY . .
139

10+
ARG VITE_API_URL
1411
RUN npm run build
1512

16-
17-
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
18-
FROM nginx:1
19-
20-
COPY --from=build-stage /app/dist/ /usr/share/nginx/html
21-
22-
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
23-
COPY ./nginx-backend-not-found.conf /etc/nginx/extra-conf.d/backend-not-found.conf
13+
EXPOSE 3000
14+
CMD ["npm", "start"]

frontend/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 TailAdmin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)