Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.7 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.7 KB

Control Panel

The static dashbaord files are included in ocean nodes so the control panel doesn't have to be rebuilt every time the node is built. If there are changes to the control panel it will be built by default with the Ocean Node. There is a script running to check for changes in this directory.

When you start your node the control panel will be made available at: http://localhost:8000/controlpanel/

Local development

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm i

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Build & run

The control panel is built by default with the Ocean Node. Set the environmental variables and then run the following commands from the root of the project:

npm run build
npm run start

The control panel will be made available at: http://localhost:8000/controlpanel/