Nodefony-electron merge Electron with Nodefony full-stack web framework.
Nodefony can be used to develop a complete solution to create a Electron application.
The Nodefony project is inspired by the PHP Symfony framework, a developer can find most of the concepts, configurations and patterns of Symfony framework.
Nodefony is not an exhaustive port of symfony !
Nodefony assimilates into the ecosystem of node.js with services like :
- Web servers (websocket(s), http(s)).
- Notion of real-time context in Action Controller (Websocket).
- Notion of synchronous or asynchronous execution in Action Controller (Promise).
- WEBPACK Module bundler for assets management of application .
- WATCHER node.js for auto reload-files in developement mode .
- PM2 Production Process Manager for Node.js .
- Passport Simple, unobtrusive authentication for Node.js .
Nodefony 3 adds the following functionality :
- Angular Bundle Generator ( Now an Angular Project can be merge into a Nodefony Bundle )
- SockJS Server ( Like WDS 'Webpack Dev Server' and HMR management )
- New cli Management (Command Line Interface )
Now in this version 3 Beta, Nodefony is evolved to a stable version without major fundamental changes.
Evolution priorities up to the stable version will focus on robustness, unit testing, documentation and security.
You can follow Nodefony build on travis at https://travis-ci.org/nodefony/nodefony
Clone and run for a quick way to see Electron in action.
This is a minimal Electron application based on the Quick Start Guide within the Electron documentation.
Use this app along with the Electron API Demos 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.app/appKernel.js
- Starts the app and creates a browser window to render HTML. This is the app's main process.app/Resources/views/index.html.twig
- 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.
To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
git clone https://github.com/nodefony/nodefony-electron.git
# Go into the repository
cd nodefony-electron
# Install dependencies
make build
# Run the app
npm start
- electron.atom.io/docs - all of Electron's documentation
- electron.atom.io/community/#boilerplates - sample starter apps created by the community
- electron/electron-quick-start - a very basic starter Electron app
- electron/simple-samples - small applications with ideas for taking them further
- electron/electron-api-demos - an Electron app that teaches you how to use Electron
- hokein/electron-sample-apps - small demo apps for the various Electron APIs