• Stars
    star
    111
  • Rank 305,173 (Top 7 %)
  • Language
    TypeScript
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A solid :) boiler plate starter pack when starting an electron project which uses create-react-app with typescript.

electron-react-ts-starter

( Has Auto Reloading and Works with Create-React-App )

This is a boiler plate starter pack when starting an electron project which uses react with typescript. The code contains some bug fixes that are found when using react with electron and typescript and has auto monitoring of typescript changes to reload the electron app for faster development.

Why this electron-react-ts-starter :

  • Run electron app with create-react-app without ejecting.
  • Auto reloads the electron app when the typescript source file changes. (This is missing in a lot of tutorial articles which only have an electron.js file and not a electron.ts file )
  • Provides the required npm scripts and folder structure for simple to complex projects.
  • Includes a very simple bundling process.
  • Auto reloads app for changes in both main process files and react files.
  • With the provided folder structure , main and renderer process codebase can be maintained independently.

Usage :

Run the react project from the renderer directory :
cd renderer
npm install // First time only
npm run start
Run electron app's main process from main directory :
cd main
npm install // First time only
npm run start

To Build and Bundle :

  • Just make sure that you have added all the dependencies in the main/package.json to the renderer/package.json and the run the below command from the renderer folder.
cd renderer
npm run release // or npm run build

Sit back and have a cup of Coffee while the app gets built .

You will now have a full fledged application waiting for you in the dist folder.


Misc And Extra Options :

  • If your app uses React Router , make sure you use HashRouter instead of BrowserRouter .
  • In the renderer/package.json , use the build property to modify the settings for electron-builder. All assets and static files in your project should be present in the assets folder.
  • To get different installer types like 'msi' , 'appx' , '7z' , 'zip' etc , change the target property inside the build property in renderer/package.json .
  • If you have nested structure of typescript files in the main folder , make sure that you copy all the generated javascript .js files into the renderer/public/ folder before building the react app (This would add the javascript files in the public folder into the build folder when building our react-app).

Project built using this pack :

Windows Terminal Tweaker

More Repositories

1

pyttsx3

Offline Text To Speech synthesis for python
Python
1,765
star
2

webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
Python
234
star
3

touchable

Flutter library to add gestures and animations to each Shape you draw on your canvas in your CustomPainter
Dart
218
star
4

card-scanner-flutter

A flutter package for Fast, Accurate and Secure Credit card & Debit card scanning
Swift
94
star
5

windows-terminal-tweaker

Tweak your windows terminal to heart's content with this app using its beautiful interface to configure everything about the terminal.
TypeScript
90
star
6

pyYify

This is a python library used to get the Top seeded torrents at any given time and get the entire movie details and ratings . Its also useful to search for any movie using different parameters and obtain their magnet link or torrent file of any preferred quality.
Python
56
star
7

svelte-ace

Ace Editor component for Svelte with TypeScript support ๐Ÿฅณ๐Ÿฅณ
Svelte
43
star
8

rm-trash

A "rm-trash" is meant to be used in place of rm system command in linux . This script will safely delete your files and put them in the trash for later retrieval.
Shell
40
star
9

cardano-nft-minter

A script that handles minting cardano native tokens in a simple and interactive way.
Shell
29
star
10

tap-rpc

The tool you need for your GRPC clients and backends
TypeScript
24
star
11

torrento

A Dart package that wraps various Web Apis for controlling and managing torrent clients.
Dart
15
star
12

snakes

A LAN Multiplayer Snake game in C++ . This is a snake game which is a console based game written in C++ to which any number of players in LAN can join and play with their corresponding snakes with smooth synchronization.
C++
14
star
13

svelte-electron-ts-starter

This is a boiler plate starter pack when starting an electron project which uses svelte with typescript โšก
TypeScript
10
star
14

tap-rest

TypeScript
9
star
15

coder-chat

A webapp built with react and express that is useful during coding sessions and other use cases that involve chatting and coding
TypeScript
6
star
16

flutter-snake-tutorial

Snake game made in flutter ! Hissss !
Dart
4
star
17

use-game-of-life

Demo of useGameOfLife
TypeScript
2
star
18

cns-lab-sit

Cryptography And Network Security Lab Programs
C++
2
star
19

flutter-multi-module-app

Sample multi module flutter app
Ruby
2
star
20

grpc-with-electron-sample-project

This project demonstrates an issue with grpc when run inside electron.
JavaScript
2
star
21

nateshmbhat

1
star
22

Regression

This repo contains many training models of Linear and Logistic regression implemented at lower level without using libraries like tensorflow.
Jupyter Notebook
1
star
23

traffic-manager

Intel Higher Education challenge project which applies image processing for vehicles and uses the processed data to handle the traffic.
Python
1
star
24

Subtitle-grabber

Gets the subtitles for the video file or multiple videos in a specified directory.
Python
1
star
25

nateshmbhat.github.io

JavaScript
1
star
26

stream-it-desktop-app

The power to stream tons of music from your PCs onto your phones effortlessly.
Java
1
star
27

simple-countdown-timer

A countdown timer which is built to be used for a hackathon that we hosted.
JavaScript
1
star
28

stream-it-android-app

Android app for streaming music on LAN.
Java
1
star
29

timetable

Time table allotment Project which aims to automate the allotment of classes to available faculties and forming the time table.
Jupyter Notebook
1
star
30

nuclei-flutter-poc-qr-code-scanner

Dart
1
star
31

dart-tutorial

Dart tutorial notes
1
star
32

algorithms

An Algorithm must be seen to be believed
C++
1
star
33

torrential-lib-mobile-app

A demo flutter app which shows the usage of the torrential-lib library.
Dart
1
star
34

nuclei-assignment-2020-mobile

Freshers Assignment 2020 - Mobile Developer
Java
1
star
35

react-native-screen-resizer

Test your react native app across various device screen sizes and supercharge your application's responsiveness.
TypeScript
1
star
36

safe-rm-python

A safe "rm" script which is meant to be used in place of rm system command in linux . This script will safely delete your files and put them in the trash. This solves accidental removals.
Python
1
star