Electron desktop applications: environmental structures

I. Introduction

Electron was developed by Github, based on Chromium and Node.js, create a framework for native cross-platform desktop applications using JavaScript, HTML and CSS and other Web technologies.

Compatible with Mac, Window and Linux, to build applications that can run in the top three operating systems, with Electron, we can use pure JavaScript to call a wealth of native APIs.

Second, the market

There are already a lot of Electrondevelopment and application, such as Atom, Insomnia, Visual Studio Code and so on. View more Electron built using the project can access Apps Built on Electron

Third, the installation

ElectronDevelopment needs to be installed Node.js, npm and electron. Let's step-by-step installation environment

1, the installation node version

First, the node official website to download the version for the operating system, and then fool installation, execute the following command without error, then the installation is no problem.

When you install node, npm installed by default

node -v
npm -v

2, the installation of domestic package manager npm

npm  install  -g cnpm --registry=https://registry.npm.taobao.org

3, installation of electron

cnpm install  -g  electron

4, electron verify whether the installation was successful

electron -v

5, using electron git clone a simple project, and execute the following command

# 克隆提示项目仓库
git clone https://github.com/electron/electron-quick-start

# 进入这个仓库
cd electron-quick-start

# 运行
electron .

6, run to the following figure

7, the specific details can be found in

electron official documents

Guess you like

Origin www.cnblogs.com/swarmbees/p/10949234.html