Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-pipeline/build_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- task: NodeTool@0
displayName: "Node.js Version"
inputs:
versionSpec: "22.x"
versionSpec: "24.13.x"

- script: |
cd frontend
Expand Down
1 change: 1 addition & 0 deletions frontend/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dist
dist-ssr
*.local
.env
.yarn/

# Editor directories and files
.vscode/*
Expand Down
1 change: 1 addition & 0 deletions frontend/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v24.13
16 changes: 13 additions & 3 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,26 @@ To run on windows, use docker.
2. Run `docker compose up -d`
3. Navigate to http://localhost:8000/

Note: If you change your environment variables in .env, you will have to rebuild the container to see the changes using the `docker compose up --build -d` command.
> [!NOTE]
>
> The port in step 3 should match the `VITE_PORT` value in your `.env` file.

To see the logs directly in your console, you can remove the -d flag. Otherwise, you can view output in Docker Desktop.

> [!TIP]
>
> If you change your environment variables in `.env`, you will have to rebuild the container to see the changes using
> the `docker compose up --build -d` command.

To see the logs directly in your console, you can remove the `-d` flag. Otherwise, you can view output in Docker Desktop.

## Update locale files

Pull key:value from google sheets to create json file.
`https://docs.google.com/spreadsheets/d/1Kk8OIOhXxzyMA3ZgyiIiQtdwJNBJvGaUTNsarYHcFsM/`

> **IMPORTANT** Please create a new google sheet for each new project. Do not use this one for one of your projects
> [!IMPORTANT]
>
> Please create a new Google Sheet for each new project. Do not use this one for one of your projects

Run `yarn sheet2i18n` to update your local keys with what is in the spreadsheet.

Expand Down
11 changes: 5 additions & 6 deletions frontend/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
version: "3.4"
# please change the name so it matches your project name
name: web-react-skeleton
services:
vite_docker:
image: node:20.11.1
container_name: vite_docker
vite:
image: node:24.13-slim
env_file:
- .env
entrypoint: /srv/app/entrypoint.sh
ports:
- 8000:8000
- "${VITE_PORT:-8000}:${VITE_PORT:-8000}"
working_dir: /srv/app
volumes:
- type: bind
source: ./
target: /srv/app
tty: true
Empty file modified frontend/entrypoint.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion frontend/example.env
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VITE_PORT=8080
VITE_PORT=8000
VITE_GENERATE_SOURCEMAP=true
VITE_ENV=local
VITE_VERSION_NUMBER=v0.0.1
Expand Down