fuxiaohei / runtime-land-dashboard

Dashboard for runtime.land

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runtime.land Dashboard

Runtime.land Dashboard is dashboard site for Runtime.land. It's built with React-Bootstrap and React-Router.

It must work with land-center binary in Runtime-land.

Usage

Run land-center first. It should run on 127.0.0.1:7901 by default.

# SET API_URL from land-center
export API_URL=http://127.0.0.1:7901
npm run start

Visit http://localhost:8080 in your browser.

ClerkJs Login

Runtime.land Dashboard use ClerkJs as login system. You need to create a ClerkJs account and set CLERK_KEY in environment variables.

export API_URL=http://127.0.0.1:7901
export CLERK_KEY=pk_test_xxxx
npm run start-clerk

Project provides a test personal key for development. It will clean all data when I'm developing. Do test with your own key.

Build for Production

Prepare your API_URL and CLERK_KEY (if need) in environment variables. Make sure land-center is running in your API_URL.

export API_URL=https://your-center-api-url
npm run build

# if you want to use ClerkJs
export API_URL=https://your-center-api-url
export CLERK_KEY=pk_live_xxxx
npm run build-clerk

Docker

If you want to run Runtime.land Dashboard in Docker, you can set DASH_API_URL and DASH_CLERK_KEY environment variables to build your own image.

docker build -t runtime-land-dashboard --build-arg DASH_API_URL=http://your-center-api-url --build-arg DASH_CLERK_KEY=your-clerk-production-key .

License

Apache-2.0

About

Dashboard for runtime.land

License:Apache License 2.0


Languages

Language:JavaScript 98.0%Language:SCSS 1.5%Language:Dockerfile 0.4%Language:HTML 0.2%