My First ElectronJS + Vite React Typescript Simple Discord Clone
PHiscord
Note that this repository is the code with ElectronJS integrated, so it's not the source code of the deployment PHiscord (you can access via https://phiscord.vercel.app). Also for the voice call feature can't be shown in the demo because it access API from Agora Service and only can be done locally
- Dashboard
- Text Chat Page
- Voice Call Page
- Settings Page
This project is built using modern web development tools and frameworks:
- Frontend Framework: Vite + React (Fast and optimized frontend development with TypeScript support)
- Desktop Application: Electron (For building cross-platform desktop applications)
- Styling: TailwindCSS (Utility-first CSS framework for fast UI development)
- Backend Database: Firebase (Realtime database and authentication services)
- Programming Languages: TypeScript
- Package Manager: npm (For managing dependencies and scripts)
- Deployment: The application is designed primarily as a desktop app using Electron, but Firebase can also be used for hosting static assets if needed.
Before running this project, ensure the following tools are installed on your system:
-
Node.js and npm:
-
Install Node.js (version 16.x or newer) which includes npm.
Download Node.js from here. -
Verify installation by running:
node -v npm -v
-
-
Git:
-
Install Git to clone the repository from GitHub.
Download Git from here.
Verify installation using:git --version
-
-
Code Editor:
- Install Visual Studio Code (VS Code) or any editor of your choice.
Ensure you have the following extensions for VS Code:- ESLint
- Prettier - Code formatter
- Python
- TailwindCSS IntelliSense
- Install Visual Studio Code (VS Code) or any editor of your choice.
-
Browser:
- Use a modern browser like Google Chrome or Firefox.
Follow these steps to set up and run the project locally on your machine:
-
Run the following command in the project root directory to install all required dependencies:
npm install
-
Also install dependencies inside the
frontendfolder:cd frontend npm install
-
Run the command below to start the Vite + React website:
cd frontend npm run dev
-
Run the following command to run Electron App / Desktop:
cd .. npm start -
Make sure to go to the root folder / outside
frontendfolder.