├── .env
├── .gitignore
├── Procfile
├── README.md
├── package.json
├── public
└── index.html
├── server.js
└── src
├── App.js
├── Chat.js
├── MessageList.js
├── OnlineList.js
├── SendMessageForm.js
├── UsernameForm.js
├── electron-react.js
├── electron-starter.js
├── index.css
└── index.js
/.env:
--------------------------------------------------------------------------------
1 | BROWSER=none
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | build/
3 |
--------------------------------------------------------------------------------
/Procfile:
--------------------------------------------------------------------------------
1 | react: npm start
2 | electron: node src/electron-react
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Chatkit Retirement Announcement
2 | We are sorry to say that as of April 23 2020, we will be fully retiring our Chatkit product. We understand that this will be disappointing to customers who have come to rely on the service, and are very sorry for the disruption that this will cause for them. Our sales and customer support teams are available at this time to handle enquiries and will support existing Chatkit customers as far as they can with transition. All Chatkit billing has now ceased , and customers will pay no more up to or beyond their usage for the remainder of the service. You can read more about our decision to retire Chatkit here: https://blog.pusher.com/narrowing-our-product-focus. If you are interested in learning about how you can build chat with Pusher Channels, check out our tutorials.
3 |
4 | # React Electron Desktop Chat
5 |
6 | A desktop chat app, built with React, [Electron](https://electronjs.org/), and [Pusher Chatkit](https://pusher.com/chatkit).
7 |
8 | 
9 |
10 | Read the tutorial on [FreeCodeCamp](https://medium.freecodecamp.org/build-a-desktop-chat-app-with-react-electron-and-chatkit-744d168e6f2f) or dive into the code.
11 |
12 | ## Running the code
13 | Download the project with `git clone` (or [click here](https://github.com/pusher/electron-desktop-chat/archive/master.zip)):
14 |
15 | ```
16 | git clone https://github.com/pusher/electron-desktop-chat
17 | cd electron-desktop-chat
18 | ```
19 |
20 | Then, within the `electron-desktop-chat` app directory, run `npm install`.
21 |
22 | Once the dependencies have finished installing, run the server with `node server.js`.
23 |
24 | In another terminal, run the desktop app with `npm run development`
25 |
26 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "min-electron-react",
3 | "version": "0.0.1",
4 | "license": "MIT",
5 | "homepage": "./",
6 | "main": "src/electron-starter.js",
7 | "devDependencies": {
8 | "electron": "^2.0.1",
9 | "foreman": "^2.0.0",
10 | "react-scripts": "^1.0.14"
11 | },
12 | "dependencies": {
13 | "@pusher/chatkit": "^0.7.12",
14 | "body-parser": "^1.18.3",
15 | "cors": "^2.8.4",
16 | "express": "^4.16.3",
17 | "pusher-chatkit-server": "^0.12.0",
18 | "react": "^16.0.0",
19 | "react-desktop": "^0.3.5",
20 | "react-dom": "^16.0.0"
21 | },
22 | "scripts": {
23 | "start": "react-scripts start",
24 | "build": "react-scripts build",
25 | "test": "react-scripts test --env=jsdom",
26 | "electron": "electron .",
27 | "dev": "nf start -p 3000"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |