Skip to content

oxocard/offline-editor

Repository files navigation

NanoPy Offline Editor

Offline version of the NanoPy Editor. No server needed.

Installation

To be able to run the Editor, the dependencies need to be installed and the project has to be built. Alternatively you can start the Editor in development mode. See section Development for more details.

Prerequisite

Clone, build and run

  1. Clone the repository and open the Project in a terminal or IDE
  2. Install dependencies with npm install
  3. Build the project with npm run build
  4. Start the editor with npm start
  5. Open http://localhost:1777 in an up to date Chrome or Edge browser (Firefox, Safari and other non-Chromium browsers do not currently support Web Serial)

Development

The Offline version of the NanoPy editor is a Vite, React single page app written in Typescript. The editor communicates via Web Serial API with the Oxocards. It uses Material UI with styled-components for most of the styling and Redux Toolkit as the state manager.

Run in dev mode

  1. Clone the repository and open the Project in a terminal or IDE
  2. Install dependencies with npm install
  3. Run the project in dev mode with npm run dev
  4. Open http://localhost:1777 in an up to date Chrome or Edge browser (Firefox, Safari and other non-Chromium browsers do not currently support Web Serial)

In dev mode the project uses Hot Module Replacement (HMR) to update the current running instance if the code is changed.

Linting

The project uses ESLint and Prettier to check the code quality and formatting.

You can run npm run lint and npm run prettier to run the checks.

About

Offline version of the NanoPy Editor. No server needed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages