Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Jul 28, 2022
1 parent 85f66d7 commit c7b5ca5
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions services/tenant-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Traction Tenant UI

## Overview

The Tenant UI is a frontend web dashboard that will authenticate a wallet key/secret and allow a user to make calls for that wallet to the Traction API.

The architechture consists of
- A Node app that serves the frontend, handles environment configuration, and can provide any minimal Tenant-UI-specific business functionality (like sending an email or something)
- A Vue3 frontend app providing the UI

## Set up your configuration
In tenant-ui/src/config add a `local.json` file to add any specific config you'd like for your local instance (otheriwse see `default.json` for defaults). At this point the only thing you'll probably want to override is the Traction URL. So your local.json can just look like this for example:

```
{
"server": {
"tractionUrl": "https://traction-api-test.apps.silver.devops.gov.bc.ca/"
}
}
```

## Running the App

To just start up the app on your local navigate a terminal to `services/tenant-ui/` and install the libraries

```bash
npm ci
cd frontend
npm ci
```

start the API from `services/tenant-ui/`
```bash
npm run start
```

This starts up the API and builds the FE and serves the frontend from [here](localhost:8080)

## Developing

To develop the backend and frontend you'll want hot-reloading and the 2 things run as separate processes so from `services/tenant-ui/` run

```bash
npm ci
npm run dev
```

and then in a separate terminal in `services/tenant-ui/frontend`

```bash
npm ci
npm run dev
```

The Vite hot-module-reload app will serve from [here](http://127.0.0.1:5173/).
2 changes: 1 addition & 1 deletion services/tenant-ui/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tenant-ui",
"name": "tenant-ui-frontend",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down

0 comments on commit c7b5ca5

Please sign in to comment.