Giter Site home page Giter Site logo

codacy-badger / excelery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from musicdev33/excelery

0.0 0.0 0.0 1.59 MB

An Excel automation app that uses Angular and Electron. I figured it was time to give this whole 'ElectronJS' thing a try.

License: MIT License

TypeScript 66.60% JavaScript 3.22% HTML 13.75% CSS 16.43%

excelery's Introduction

Maintainability

Introduction

Built off of angular-electron, big thanks to Maxime GRIS.

Currently runs with:

  • Angular v8.0.0
  • Electron v5.0.2
  • Electron Builder v20.41.0

/!\ Angular 8.0 CLI needs Node 10.9 or later to work.

Getting Started

Clone this repository locally :

git clone https://github.com/MusicDev33/ExCelery.git

Install dependencies with npm :

npm install

There is an issue with yarn and node_modules that are only used in Electron on the backend when the application is built by the packager. Please use npm as the dependency manager.

If you want to generate Angular components with Angular-CLI , you MUST install @angular/cli in npm global context. Follow Angular-CLI documentation if you installed a previous version of angular-cli.

npm install -g @angular/cli

Build for Development

  • in a terminal window -> npm start

Now ExCelery is running as an Electron application with hot reload.

The application code is managed by main.ts, and runs with a simple Angular app (http://localhost:4200) and an Electron window. The Angular component contains an example of Electron and NodeJS native lib import. You can disable "Developer Tools" by commenting out win.webContents.openDevTools(); in main.ts.

Included Commands

Command Description
npm run ng:serve:web Execute the app in the browser.
npm run build Build the app. Your built files are in the /dist folder.
npm run build:prod Build the app with Angular AoT. Your built files are in the /dist folder.
npm run electron:local Builds your application and starts Electron.
npm run electron:linux Builds your application and creates an app consumable on Linux.
npm run electron:windows On a Windows OS, builds your application and creates an app consumable on Windows 32/64 bit systems.
npm run electron:mac Builds your application and generates a .app file of your application that can be run on macOS.

Application is optimised. Only /dist folder and node dependencies are included in the executable.

Using a specific library (like rxjs) in Electron main thread

Import your library in npm dependencies (not devDependencies) with npm install --save. It will be loaded by Electron during build phase and added to the final package. Then use your library by importing it in main.ts file.

Browser Mode

If you want to run the app in the browser with hot reload, you can do it with npm run ng:serve:web.

Note that you can't use Electron or NodeJS native libraries in this case. Please check providers/electron.service.ts to watch how conditional import of Electron/native libraries is done.

excelery's People

Contributors

musicdev33 avatar maximegris avatar tomoyukiaota avatar leo6104 avatar francescoborzi avatar lazza avatar artemv avatar creadicted avatar theoomoregbee avatar angular-cli avatar stalina avatar bampakoa avatar coddo avatar danieloprado avatar danielsogl avatar hervehobbes avatar sookcha avatar jialipassion avatar leomartindev avatar mo2menelzeiny avatar oliverlonghi avatar osmarcs avatar rm-code avatar jansivans avatar yannisgu avatar louich avatar nakeawvichit avatar eggachecat avatar tbo47 avatar whyboris avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.