Skip to content

'electron 애플리케이션 개발' 책의 chatting 앱 예제를 최신 버전으로 만들어보는 프로젝트

Notifications You must be signed in to change notification settings

2ssue/electron-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron-Chat

This project converted this book's examples (electron-chat) to current version react and electron.

Install

$yarn 

Usage

# Note
#
# You have to make .env file before start.
# This project don't inform server information. checkout `dev.env`
$cd electron-chat
# react build
$yarn run build
# run electron
$yarn run electron

Packaging

$Copy ./src/electron ./build/electron -Recurse
$cd build
# At electron/createWindows.js file, modify file path statement like this.
# pathname: path.join(__dirname, '../index.html'),
# 
# And create package.json file like below, and start packaging.
# If you don't want to show raw code, use `--asar` option when packaging.
$yarn run packager

build/package.json

{
  "name": "electron-chat",
  "version": "1.0.0",
  "description": "",
  "main": "electron/electron-starter.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "packager": "npx electron-packager . electron-chat --platform win32 --arch x64 --out release/"
  },
  "author": "",
  "license": "ISC"
}

Project Structure

This project's structure is based on express generator

electron-chat
├── 📁public
├── 📂src
│   ├── 📁electron              # about electron source
│   ├── 📁router                # react component source
│   ├── 📄 App.js
│   ├── 📄 index.css
│   ├── 📄 index.js             # entry point
│   └── 📄 logo.svg
├── .env                        # config file related firebase api. check dev.env
├── package-lock.json
└── package.json

Tech

module name description
dotenv Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.
create-react-app Create React apps with no build configuration.
styled component Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
electron The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on Node.js and Chromium and is used by the Atom editor and many other apps.
firebase Firebase provides the tools and infrastructure you need to develop, grow, and earn money from your app. This package supports web (browser), mobile-web, and server (Node.js) clients.

Author

Sujeong Lee

About

'electron 애플리케이션 개발' 책의 chatting 앱 예제를 최신 버전으로 만들어보는 프로젝트

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published