Commit 4de3411f authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Merge branch 'develop' into 'main'

Remove example env

See merge request !10
parents 0097e8bf cda7a325
Loading
Loading
Loading
Loading

.env.development

0 → 100644
+4 −0
Original line number Diff line number Diff line
VITE_PORT=8080
VITE_AUTH_URL=
VITE_BASE_PATH=http://localhost:8080
VITE_API_PATH=http://localhost:8081

.env.example

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
VITE_AUTH_URL=
VITE_BASE_PATH=
VITE_API_PATH=
DOCKER_REGISTRY=
K8S_NAMESPACE=
+1 −1
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@ dist

.env
.env.*
!.env.example
!.env.development
+18 −3
Original line number Diff line number Diff line
FROM node:20.11.1 AS build
# check=skip=SecretsUsedInArgOrEnv
# Ignore false-positive warning about VITE_AUTH_URL
FROM node:20.19.5 AS build

ARG VITE_PORT="8080"
ENV VITE_PORT=$VITE_PORT
ARG VITE_AUTH_URL=""
ENV VITE_AUTH_URL=$VITE_AUTH_URL
ARG VITE_BASE_PATH="http://localhost:8080"
ENV VITE_BASE_PATH=$VITE_BASE_PATH
ARG VITE_API_PATH="http://localhost:8081"
ENV VITE_API_PATH=$VITE_API_PATH

WORKDIR /app
COPY package.json package-lock.json /app/
RUN npm ci
COPY . /app/
RUN npm run build-prod

FROM bitnami/nginx:1.25.4
FROM nginx:1.29.1
EXPOSE 8080
COPY ./docker/server.conf /opt/bitnami/nginx/conf/server_blocks/server.conf
COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /app
# Resolve permissions issues on unprivileged setups
RUN touch /run/nginx.pid
RUN chmod -R g+rw /var/cache/nginx/ /run/nginx.pid
 No newline at end of file
+17 −3
Original line number Diff line number Diff line
@@ -14,8 +14,22 @@ User Interface for the ExaDigiT project that allows for running simulations and

[Tanstack](https://tanstack.com/)

## Getting Started
## Running Locally

To get the project up and running locally, you will want to start by cloning the project and running `npm install` in the projects directory. Then run `npm run dev`.
To get the project up and running locally, clone and deploy the SimulationServer from [GitHub](https://github.com/ExaDigiT/SimulationServer)
or [GitLab](https://code.ornl.gov/exadigit/simulationserver) and follow the instructions to launch a local instance of the full server and
dashboard stack. The dashboard will be hosted on http://localhost:8080 by default.

After doing so you can navigate to `localhost:8080` to login to the application.
You can also run the ExaDigiT dashboard directly, e.g. for faster development builds or to run it against an existing ExaDigiT Simulation Server deployment.
Run the simulation server locally without the dashboard by running this in `simulation-server`:
```bash
docker compose up simulation-server --wait
```

Then in `simulation-dashboard` run:
```bash
npm install
npm run dev
```

After doing so you can navigate to http://localhost:8080 to use the application.
Loading