https://github.com/12343954/electron-react-webpack-typescript-2022-corona
Electron React Webpack Typescript with CORONA Admin 2022
https://github.com/12343954/electron-react-webpack-typescript-2022-corona
admin-dashboard corona electron react typescript webpack
Last synced: 3 months ago
JSON representation
Electron React Webpack Typescript with CORONA Admin 2022
- Host: GitHub
- URL: https://github.com/12343954/electron-react-webpack-typescript-2022-corona
- Owner: 12343954
- License: mit
- Created: 2022-03-08T05:42:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-08T07:22:57.000Z (over 4 years ago)
- Last Synced: 2025-03-01T10:17:14.786Z (over 1 year ago)
- Topics: admin-dashboard, corona, electron, react, typescript, webpack
- Language: TypeScript
- Homepage:
- Size: 19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Electron React Webpack Typescript with CORONA Admin 2022
## Base on:
1. [Electron React Webpack Typescript - Boilerplate 2022](https://github.com/codesbiome/electron-react-webpack-typescript-2022)
A very powerful and out-of-the-box electron+react scaffolding.
2. [CoronaAdmin-Free-Admin-Template](https://github.com/BootstrapDash/corona-free-dark-bootstrap-admin-template)
A very beautiful and responsive layout admin template, I liked it very much.
ERWT is a minimal boilerplate for writing Desktop Applications using [Electron](https://www.electronjs.org/), [React](https://reactjs.org/), [Webpack](https://webpack.js.org/) & [TypeScript](https://www.typescriptlang.org/).
This project makes use of latest packages and configurations to serve the best environment for development.
## A few improvements have been made
1. convert all CORONA js code to tsx
2. add a custom icon, when packaging
3. add `scss` style loader
## Screenshot
|||
|:---:|:---:|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Custom Window Titlebar & Menu
This project now includes custom [Electron Window](https://github.com/guasam/electron-window), Titlebar, Menu Items, Window Controls & application icon etc by default. Menu items and windows controls layout or colors can be customized easily by modifying the `misc/window` modules. The `windows` platform buttons are being used by default in the Titlebar.
Menubar can be toggled by pressing `ALT` key

## Core Features
- ๐ CoronaAdmin-Free-Admin-Template [Responsive layout] ๐
- ๐ Custom Window & Titlebar with Menus
- ๐ Electron
- ๐ TypeScript
- โ๏ธ React
- ๐ SASS/SCSS Loader ๐
- ๐ถ LESS Loader
- ๐จ CSS Loader
- ๐ธ Image Loader
- ๐ Font Loader
- ๐งน ESLint
- ๐ฆ Electron Forge
- ๐ฑ Webpack & Configuration
- ๐งฉ Aliases for project paths
- ๐ฅ Hot Module Replacement (Live Reload)
- ๐ Package Bundling (Distribution / Release)
## Installation
To clone the ERWT boilerplate, you need to run following commands:

Master version of ERWT contains project files in separate context for main and renderer process, uses custom window, custom titlebar & menus.
```bash
git clone --recurse-submodules https://github.com/12343954/electron-react-webpack-typescript-2022-corona
```
OR

Minimal version of ERWT contains very simple project files structure, no custom window, no custom titlebar & menus.
```bash
git clone -b minimal https://github.com/12343954/electron-react-webpack-typescript-2022-corona
```
Install dependencies using [Yarn](https://www.npmjs.com/package/yarn) or [NPM](https://www.npmjs.com/) :
```bash
yarn install
```
## Start : Development
To develop and run your application, you need to run following command.
Start electron application for development :
```bash
yarn start
```
## Lint : Development
To lint application source code using ESLint via this command :
```bash
yarn lint
```
## Package : Production
Customize and package your Electron app with OS-specific bundles (.app, .exe etc)
```bash
yarn package
```
## Make : Production
Making is a way of taking your packaged application and making platform specific distributables like DMG, EXE, or Flatpak files (amongst others).
```bash
yarn make
```
## Publish : Production
Publishing is a way of taking the artifacts generated by the `make` command and sending them to a service somewhere for you to distribute or use as updates. (This could be your update server or an S3 bucket)
```bash
yarn publish
```
## Packager & Makers Configuration
This provides an easy way of configuring your packaged application and making platform specific distributables like DMG, EXE, or Flatpak files.
This configurations file is available in :
```bash
tools/forge/forge.config.js
```
For further information, you can visit [Electron Forge Configuration](https://www.electronforge.io/configuration)