Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aoirint/harmonica-web-next

Harmonica: Arduino環境センサモニター用Webフロントエンドアプリ(10.1インチタブレット用)
https://github.com/aoirint/harmonica-web-next

Last synced: about 1 month ago
JSON representation

Harmonica: Arduino環境センサモニター用Webフロントエンドアプリ(10.1インチタブレット用)

Awesome Lists containing this project

README

        

# harmonica-web-next

自宅センサモニターHarmonicaのNext.js製Webフロントエンドアプリ。

![](docs/screenshot_monitor.jpg)

## Development Environment

- Node 20
- npm 10
- (Recommended) nvm:

## Run the development server

```shell
nvm use

npm ci
```

Create `.env.local` file.

```env
NEXT_PUBLIC_HASURA_URL=https://hasura.example.com
HASURA_ADMIN_SECRET=myadminsecretkey

NEXT_PUBLIC_SMOKEPING_NAMES=Ping MyTarget
NEXT_PUBLIC_SMOKEPING_URLS=https://smokeping.example.com
NEXT_PUBLIC_SMOKEPING_TARGETS=MyGroup.MyTarget
```

```shell
npm run codegen -- --watch

npm run dev
```

## Deployment

```shell
nvm use

npm ci

npm run build

rsync -av --delete out/ /path/to/
```