candidosales / sails-angular2-electron

Sails JS angular JS and Electron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sails-angular2-electron

Basic cross platform desktop application built with SailsJS, TypeScript, Angular2, Material Design and Electron

(currently working on it...)

Features

  • Cross platform desktop application built with Electron (Mac OS, Windows, Linux)
  • Rest API built with Sailsjs (server App)
  • User interface built in Angular2 (client App)
  • NeDB, embedded persistent database with no dependency(except npm modules)
  • User authentication and session control (JWT, register, login, logout)
  • Simple Dashboard
  • Custom context menu
  • Grunt automatization, compass, jshint, bower injection, watch, build, start the app, others...
  • Browser mode (The task is appropiate just if the client side interface don't have dependencie of nodejs, otherwise the application will not work properly)

Dev

Install Electron

npm install electron-prebuilt -g

Install Grunt

npm install grunt-cli -g

Install Bower

npm install -g bower

For use the electron-packager cli

npm i electron-packager -g

install root dependencies

$ npm install

install the server app dependencias (sails)

$ cd app/server
$ npm install

Install dependencies bower

$ cd ../..
$ bower install

Install Compass

gem install compass

Install TypeScript

npm install typescript -g

Dev Tools

Toggle Dev Tools. Debug features using electron-debug.

  • OS X: Cmd Alt I
  • Linux: Ctrl Shift I
  • Windows: Ctrl Shift I

Reload

Force reload the window.

  • OS X: Cmd R
  • Linux: Ctrl R
  • Windows: Ctrl R

Run

$ npm start

or directly run

$ grunt start

or run with developer tools open from the begining

$ npm run startd

Build

  • Build all bundles: $ npm run build
  • Build Mac os bundle: $ npm run build-mac
  • Build Windows 32: $ npm run build-win32
  • Build Windows 64: $ npm run build-win64
  • Build linux 32: $ npm run build-linux32
  • Build linux 64: $ npm run build-linux64

Builds the app for OS X, Linux, and Windows, using electron-packager.

License

MIT © Cândido Sales Gomes

About

Sails JS angular JS and Electron

License:MIT License


Languages

Language:JavaScript 83.5%Language:HTML 8.1%Language:CSS 7.7%Language:TypeScript 0.6%