Offline version of the NanoPy Editor. No server needed.
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.
- This project uses Node.js (at least v16.14). You can install it from here.
- For the Oxocards Science and Connect the driver for the USB chip must be installed: http://www.wch-ic.com/search?q=CH340&t=downloads
- Clone the repository and open the Project in a terminal or IDE
- Install dependencies with
npm install - Build the project with
npm run build - Start the editor with
npm start - 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)
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.
- Clone the repository and open the Project in a terminal or IDE
- Install dependencies with
npm install - Run the project in dev mode with
npm run dev - 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.
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.