Skip to content

Commit

Permalink
docs(guardian-prover-health-check-ui): update README.md for Guardian …
Browse files Browse the repository at this point in the history
…prover health check UI (#17053)
  • Loading branch information
Decave committed May 13, 2024
1 parent 3cf6e7b commit c7f3143
Showing 1 changed file with 41 additions and 15 deletions.
56 changes: 41 additions & 15 deletions packages/guardian-prover-health-check-ui/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,64 @@
# create-svelte
# Guardian prover health check UI

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
This package contains the Guardian prover health check UI built with svelte and wagmi

## Creating a project
- [Guardian prover health check UI](#guardian-prover-health-check-ui)
- [Development setup](#development-setup)
- [Set up environment variables](#set-up-environment-variables)
- [Start a development server:](#start-a-development-server)
- [Building](#building)

If you're seeing this, you've probably already done this step. Congrats!
## Development setup

To get started, open your terminal in `/packages/guardian-prover-health-check-ui/`

Install all dependencies with

```bash
# create a new project in the current directory
npm create svelte@latest
pnpm install
```

### Set up environment variables

# create a new project in my-app
npm create svelte@latest my-app
```bash
cp .env.example .env
```

## Developing
Then update environment variables in .env

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
source .env
```

### Set up configurations

```ENV
VITE_GUARDIAN_PROVER_API_URL=
VITE_GUARDIAN_PROVER_CONTRACT_ADDRESS=
VITE_RPC_URL=
```

### Start a development server:

```bash
npm run dev
pnpm dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
pnpm dev -- --open

# if you want to expose the IP to your network you can use this flag
pnpm dev --host

```

## Building

To create a production version of your app:

```bash
npm run build
pnpm run build
```

You can preview the production build with `npm run preview`.
You can preview the production build with `pnpm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

0 comments on commit c7f3143

Please sign in to comment.