All Projects → BenjaminDobler → Ngtron

BenjaminDobler / Ngtron

Licence: mit
Easily serve and build angular based electron applications

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ngtron

Lib
🤖 Lets you focus on the stuff that matters
Stars: ✭ 142 (-20.22%)
Mutual labels:  schematics, angular-cli
Nativescript Schematics
nativescript, mobile, schematics, angular
Stars: ✭ 176 (-1.12%)
Mutual labels:  schematics, angular-cli
Model
Angular Model - Simple state management with minimalist API, one way data flow, multiple model support and immutable data exposed as RxJS Observable.
Stars: ✭ 242 (+35.96%)
Mutual labels:  schematics, angular-cli
yang-schematics
Yet Another Angular Generator - based on @schematics/angular
Stars: ✭ 16 (-91.01%)
Mutual labels:  angular-cli, schematics
Plotkicadsch
This project aims at being able to export Kicad Sch files to structured picture files
Stars: ✭ 153 (-14.04%)
Mutual labels:  schematics
Angular9 Example App
Angular 13 Example App + Angular CLI + i18n + GraphQL
Stars: ✭ 1,769 (+893.82%)
Mutual labels:  angular-cli
Coreui Free Bootstrap Admin Template
CoreUI is free bootstrap admin template
Stars: ✭ 11,038 (+6101.12%)
Mutual labels:  angular-cli
Ng Packagr
Compile and package Angular libraries in Angular Package Format (APF)
Stars: ✭ 1,730 (+871.91%)
Mutual labels:  angular-cli
Raemixx500
Open Hardware Remake of the Commodore Amiga 500+ Mainboard
Stars: ✭ 161 (-9.55%)
Mutual labels:  schematics
Spring Boot Angular4 Boilerplate
Quickstart for spring boot + angular 4 projects
Stars: ✭ 151 (-15.17%)
Mutual labels:  angular-cli
Poddr
Podcatcher made with Electron and Angular
Stars: ✭ 149 (-16.29%)
Mutual labels:  electronjs
J
微信网页版API 微信桌面机器人
Stars: ✭ 155 (-12.92%)
Mutual labels:  electronjs
Word2vec Spam Filter
Using word vectors to classify spam messages
Stars: ✭ 149 (-16.29%)
Mutual labels:  schematics
Ng Demo
🦴 Bare Bones Angular 10 and Angular CLI Tutorial
Stars: ✭ 154 (-13.48%)
Mutual labels:  angular-cli
Liowebrtc
An event-based WebRTC library that makes it easy to embed real-time peer to peer communication into UI components.
Stars: ✭ 138 (-22.47%)
Mutual labels:  electronjs
Space
A real time chat app for developers built using React, Redux, Electron and Firebase
Stars: ✭ 161 (-9.55%)
Mutual labels:  electronjs
Paper Kit 2 Angular
Free Bootstrap 4 UI Kit for Angular 2+
Stars: ✭ 133 (-25.28%)
Mutual labels:  angular-cli
Spring Petclinic Angular
Angular 8 version of the Spring Petclinic sample application (frontend)
Stars: ✭ 145 (-18.54%)
Mutual labels:  angular-cli
Angular2 Crud Rest
Sample Angular (2.x and 4.x) app: CRUD example + routing
Stars: ✭ 152 (-14.61%)
Mutual labels:  angular-cli
Excel Parser Processor
Simply does the tedious, repetitive operations for all rows of excel files step by step and reports after the job is done. It can download files from URL(s) in a column of Excel files. If a new filename is provided at column B it will rename the file before saving. It will even create sub folders if column C is full with a valid folder name.
Stars: ✭ 177 (-0.56%)
Mutual labels:  electronjs

NgTron

Alt text

Angular + Electron = ❤️

Angular CLI extension based on Schematics and Builders for building angular based electron applications. This project uses the new architect API which was introduced in Angular 8. So you can only use this addon starting with angular 8!

Ngtron will setup your angular workspace with the finest electron tools available. Electron Builder is added to package your projects for mac, windows and linux.

npm version

Introduction

An typical electron project consists of node application which is called the main process. This main process can create BrowserWindows which contain web pages. Those web pages are called renderer processes in the context of electron. Consequently an ngtron project is a combination of different types of applications. This nicely fits with the multi project support of Angular workspaces. An ngtron project can have exactly one main (node) project and n renderer projects (normal angular projects). There is one more type which is an electron project type where this all configured. This flexible architecture allows to build electron apps which include multiple angular projects. You can for example open several windows each containing a different Angular application.

Installation

NGTron supports the ng-add schematic to setup an angular workspace. Running the schematic will install the @richapps/ngtron packages and setup further dependencies like electron-builder.

ng add @richapps/ngtron

Setup

The recommended way of using ngtron is to use multiple projects for each type (main, renderer, electron) in an angular workspace. Beside that ngtron also supports root level projects which do not use multiple projects by adding the main process and electron files inside the renderer project. Here you will find an overview of the different setups.

Creating an application as multiple projects in a workspace (recommended)

ng new workspace --create-application=false ng add @richapps/ngtron ng generate @richapps/ngtron:app

You will be prompted for a project name. Let's assue you choose my_app as the project name.

This will generate three projects in your worspace.

  • myapp-electron This projects holds the electron specific configuration and assets like icons for your electron application.

  • myapp-main This projects is a node project which will used for the main process of your application

  • myapp-renderer This is the angular project where you can define your renderer code (Note: you can add more renderer projects if you for example want to open different angular apps in different windows of your electron app).

You can now run your app with: ng serve myapp-electron And package your app with: ng run myapp-electron:package

Using an existing angular project as the renderer for an electron app

ng add @richapps/ngtron

`ng generate @richapps/ngtron:app --project=

Create a root level ngtron project

ng new <my-project>

ng add @richapps/ngtron

ng generate @richapps/ngtron:app --project=<my-project> --singleProject=true

Adding ngtron to an existing root level project

ng add @richapps/ngtron

ng generate @richapps/ngtron:app --project=my-existing-project --singleProject=true

Run app while developing (with hot reloading)

ng run project:build-electron

Builds the app and opens it in an electron window. Uses hot reloading whenever your code changes.

Package your app

ng run project:package-electron

You can customize your build settings in the angular.json. There you will find all the settings which you can use in electron-builder.

Serve app in the browser

ng run project:serve-electron This will serve your app in the browser even if you use node or electron apis. Example will follow.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].