first-electron/README.md

46 lines
2.3 KiB
Markdown
Raw Normal View History

2015-10-17 07:56:39 +08:00
# electron-quick-start
2015-10-17 08:52:00 +08:00
**Clone and run for a quick way to see Electron in action.**
2015-10-17 08:52:00 +08:00
This is a minimal Electron application based on the [Quick Start Guide](http://electron.atom.io/docs/tutorial/quick-start) within the Electron documentation.
2015-10-17 08:52:00 +08:00
2016-05-11 14:48:52 +08:00
**Use this app along with the [Electron API Demos](http://electron.atom.io/#get-started) app for API code examples to help you get started.**
A basic Electron application needs just these files:
2015-10-17 08:52:00 +08:00
- `package.json` - Points to the app's main file and lists its details and dependencies.
2016-04-21 06:18:14 +08:00
- `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**.
2015-10-17 08:52:00 +08:00
You can learn more about each of these components within the [Quick Start Guide](http://electron.atom.io/docs/tutorial/quick-start).
2015-10-17 08:52:00 +08:00
## 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
2016-04-05 04:00:14 +08:00
git clone https://github.com/electron/electron-quick-start
2015-10-17 08:52:00 +08:00
# Go into the repository
cd electron-quick-start
2016-11-01 01:38:04 +08:00
# Install dependencies
npm install
# Run the app
npm start
2015-10-17 08:52:00 +08:00
```
2017-04-06 03:17:52 +08:00
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.
2015-10-17 08:52:00 +08:00
## Resources for Learning Electron
2017-04-05 23:09:02 +08:00
- [electron.atom.io/docs](http://electron.atom.io/docs) - all of Electron's documentation
- [electron.atom.io/community/#boilerplates](http://electron.atom.io/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
2016-07-15 06:02:18 +08:00
[CC0 1.0 (Public Domain)](LICENSE.md)