# electron-quick-start
**Clone and run for a quick way to see Electron in action.**
This is a minimal Electron application based on the [Quick Start Guide](https://electronjs.org/docs/tutorial/quick-start) within the Electron documentation.
**Use this app along with the [Electron API Demos](https://electronjs.org/#get-started) app for API code examples to help you get started.**
A basic Electron application needs just these files:
- `package.json` - Points to the app's main file and lists its details and dependencies.
- `main.js` - Starts the app and creates a browser window to render HTML. This is the app's **main process**.
- `index.html` - A web page to render. This is the app's **renderer process**.
You can learn more about each of these components within the [Quick Start Guide](https://electronjs.org/docs/tutorial/quick-start).
## To Use
To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
```bash
# Clone this repository
git clone https://github.com/electron/electron-quick-start
# Go into the repository
cd electron-quick-start
# Install dependencies
npm install
# Run the app
npm start
```
Note: If you're using Linux Bash for Windows, [see this guide](https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/) or use `node` from the command prompt.
## Resources for Learning Electron
- [electronjs.org/docs](https://electronjs.org/docs) - all of Electron's documentation
- [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - sample starter apps created by the community
- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - a very basic starter Electron app
- [electron/simple-samples](https://github.com/electron/simple-samples) - small applications with ideas for taking them further
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - an Electron app that teaches you how to use Electron
- [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - small demo apps for the various Electron APIs
## License
[CC0 1.0 (Public Domain)](LICENSE.md)
没有合适的资源?快使用搜索试试~ 我知道了~
桌面应用程序electron以及搭建步骤
共9个文件
js:3个
md:2个
json:2个
0 下载量 72 浏览量
2023-11-16
11:10:46
上传
评论
收藏 15KB ZIP 举报
温馨提示
electron搭建步骤: 1、克隆示例仓库的项目: git clone https://github.com/electron/electron-quick-start.git 2、安装依赖: npm install 安装依赖完成之后发现electron的版本已经是7.1.2了,版本过高导致安装的依赖中缺少个别所需文件,解决办法如下: (1)、前往淘宝镜像 https://npm.taobao.org/mirrors/electron/7.1.2/ 手动下载对应的包,我用windows,所以下载electron-v7.0.0-win32-x64.zip 然后在node_modules\electron\下创建dist文件夹。 将下载的压缩包解压进刚刚创建的dist。 在node_modules\electron\中创建path.txt,内容为electron.exe。 3、现在 npm start 运行项目就可以了
资源推荐
资源详情
资源评论
收起资源包目录
electron-quick-start-master.zip (9个子文件)
electron-quick-start-master
preload.js 436B
LICENSE.md 6KB
main.js 2KB
package.json 434B
package-lock.json 27KB
index.html 687B
.gitignore 13B
renderer.js 293B
README.md 2KB
共 9 条
- 1
资源评论
缘飞梦
- 粉丝: 264
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功