Installation and Deployment
The SEEDS application is designed to be deployed as a single Docker container, which runs both the frontend and the backend services.
Prerequisites
Docker: Ensure Docker is installed and running on your system.
Docker Deployment
Building the Image
To build the Docker image, run the following command from the project root:
docker build -t seeds-app .
Running the Container
To run the application, use the following command (ensure port 8080 is mapped):
docker run -p 8080:8080 seeds-app
Configuration
Environment Variables
The backend requires specific environment variables to function correctly, particularly for the OIDC authentication.
These variables should be passed to the Docker container at runtime or defined in a .env file (if running locally).
Variable |
Description |
|---|---|
|
Base URL of the IAM provider. |
|
The IAM realm to authenticate against. |
|
The OpenID Connect Client ID. |
|
Critically Confidential. The secret used for token exchange. |
|
Port for the internal Node.js backend. |
Local Development
For local development without Docker:
Frontend: .. code-block:: bash
npm install npm run dev
Backend: Navigate to the
backend/directory (or root if integrated) and run: .. code-block:: bashnode server.js
Note: Ensure the required environment variables are set in your local shell.