Skip to content

Commit 345350d

Browse files
authored
doc: refactor README (#54)
* doc: refactor README * doc: refactor readme * doc: add coverage status badge to readme * fix: refactor readme
1 parent 8d764aa commit 345350d

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_BASE_API_URL=http://localhost:8989
1+
VITE_BASE_API_URL="http://localhost:8989"

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
# React + TypeScript + Vite
1+
# CodeGate Dashboard
22

3-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3+
[![Coverage Status](https://coveralls.io/repos/github/stacklok/codegate-ui/badge.svg?branch=main)](https://coveralls.io/github/stacklok/codegate-ui?branch=main)
44

5-
Currently, two official plugins are available:
5+
This repository contains the [CodeGate](https://github.com/stacklok/codegate)
6+
dashboard user interface. The dashboard presents information about CodeGate's
7+
security insights and activity, including:
68

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9+
- Prompt and chat conversation history
10+
- Security alert counts and daily trend
11+
- Alert history with secrets and package risks detected by CodeGate
12+
- CA certificate download and installation instructions
913

1014
## Setting up local development environment
1115

12-
To install all dependencies for your local development environment, run
16+
To run a local development environment, start by running a copy of the CodeGate
17+
[application](https://github.com/stacklok/codegate/blob/main/docs/development.md)
18+
or [container](https://docs.codegate.ai/how-to/install). The UI will connect to
19+
the API endpoint at `http://localhost:8989` by default. To change this, set the
20+
`VITE_BASE_API_URL` environment variable.
21+
22+
Install all dependencies and run a dev server:
1323

1424
```bash
1525
npm install
@@ -23,6 +33,8 @@ Run the development server using:
2333
npm run dev
2434
```
2535

36+
Open <http://localhost:5173> on your browser to see the dashboard
37+
2638
## Build production
2739

2840
Run the build command:

0 commit comments

Comments
 (0)