The DATS project will be transferring inactive Full Retention (FR) government digital records and metadata to be archived, according to approved Information Schedules.
-
Set Up Environment: Set up the
.env
based on the.env.template
file. -
Start Services: Run
npm run up
to start the API, MongoDB, and RabbitMQ services. -
Desktop Directory: Navigate to
desktop
. -
Install Dependencies: Run
npm install
. -
Build App: Run
npm run build
to enable worker functionality. -
Launch App: Run
npm run dev
.
To switch API environments:
-
In the app, go to
Edit > Select Environment
. -
Choose
Local
,Dev
,Test
, orProd
.
- Default:
Local
during development usingnpm run dev
,Prod
in executable builds.
-
Clear Build Folders: Remove
desktop/out/
anddesktop/dist/
. -
Build Executable:
- Run from
desktop/
as an Administrator:
npm run build:win
npm run build:mac
npm run build:linux
-
Uninstall Previous Version: Remove existing installation a. Windows: in
C:\Users\<username>\AppData\Local\Programs\desktop
. b. Mac:/Applications/desktop.app
. -
Locate Build: In VSCode, right-click
desktop/dist/
and selectReveal in Finder/File Explorer
. Run the setup executable. -
Test App Launch: Ensure the desktop app opens correctly, then close it.
-
Run in Console: a. Windows: Open Command Prompt and run
<file-location>/desktop.exe
e.g.,C:\Users\<username>\AppData\Local\Programs\desktop\desktop.exe
b. Mac: Open Terminal and run<file location>
e.g.,/Applications/desktop.app/Contents/MacOS/desktop.app
graph TD
%% Define the architecture components
subgraph Client["Client"]
style Client fill:#D0E8F2,stroke:#3B82F6,stroke-width:2px
A1[Electron React App]
end
subgraph OpenShift["OpenShift Environment"]
style OpenShift fill:#F3F4F6,stroke:#6B7280,stroke-width:2px
direction TB
A1 -.->|Must be on VPN or BC Gov Network| B[Express API]
B -->|Queue Requests| C[RabbitMQ]
B -->|Store Metadata| D[MongoDB]
B -->|Store Files| E[S3 Bucket]
end
%% Define external connections
C -->|Process Queue| B