electron-api-demos README

The project's README from github.com/electron/electron-api-demos. As one markdown file: README.md.

Electron API Demos icon Electron API Demos

Build Status JavaScript Standard Style

This is a desktop app that interactively and with sample code demonstrates core features of the Electron API. It's built with Electron, too, of course. This app works on Windows, macOS and Linux operating systems.

Use this app to see what you can do with Electron and use the source code to learn how to create a basic Electron app.

Electron API Demos Screenshots


This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

Follow @ElectronJS on Twitter for important announcements. Visit the electron website.

Using

You can download the latest release for your operating system or build it yourself (see below).

Building

You'll need Node.js installed on your computer in order to build this app.

$ git clone https://github.com/electron/electron-api-demos
$ cd electron-api-demos
$ npm install
$ npm start

If you don't wish to clone, you can download the source code.

For easier developing you can launch the app in fullscreen with DevTools open:

$ npm run dev

Extending

Read the docs to learn more about how this app is built or how to add a new demo.

Translations

Note: these versions are maintained by outside contributors and may not always be in sync with this version.

electron-api-demos (electron/electron-api-demos)

Searching Database…

10.2K ·GitHub
archived
Что это такое?Это настольное приложение, которое интерактивно демонстрирует основные API Electron с живыми примерами кода. Так вы можете увидеть, что делает каждый API, и изучить исходный код, чтобы научиться создавать приложение на Electron.
Это библиотека или готовое приложение?Это самостоятельное настольное приложение, построенное на самом Electron, а не библиотека, которую нужно импортировать в свой код.
Как его запустить?Скачайте последнюю готовую сборку для вашей ОС или соберите приложение самостоятельно: установите Node.js и запустите скрипт start.
Проект всё ещё поддерживается?Нет, репозиторий архивирован, поэтому основная команда больше не выпускает обновления. Переводы, созданные сообществом, также могут расходиться с основной версией.
Работает ли он на Windows, macOS и Linux?Да, он работает на всех трёх системах и имеет скрипты упаковки для каждой из них (цели darwin, win32, linux).
Как добавить новую демонстрацию API?Вы расширяете приложение, изучив документацию проекта: в ней описано, как устроено демонстрационное приложение и как подключить новую демо-панель.
Есть ли переводы приложения?Да, существуют переводы на упрощённый китайский, традиционный китайский и японский языки. Они оформлены как отдельные форки, которые поддерживает сообщество.
Как вести разработку и отладку?Запустите приложение скриптом dev: оно откроется в полноэкранном режиме с открытыми DevTools, что упрощает разработку.
Есть ли автоматическое тестирование?Да, в проекте для тестов используется mocha, а для проверки стиля кода — standard. Запускаются они скриптом test.
Creator
electron
Size
5.5 MB
Stars
10.2K
Age
11y
Commits · 90 Days