https://github.com/jongan69/soltrendio-extension
https://github.com/jongan69/soltrendio-extension
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jongan69/soltrendio-extension
- Owner: jongan69
- Created: 2025-02-04T02:50:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-04T02:56:36.000Z (over 1 year ago)
- Last Synced: 2025-02-04T03:26:51.725Z (over 1 year ago)
- Language: TypeScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Chrome Extension Template
This is a template for creating a Chrome extension using React and [Vite](https://vitejs.dev/) with TypeScript.
## Getting Started
### Prerequisites
Make sure you have [Node.js](https://nodejs.org/) (version 18+ or 20+) installed on your machine.
### Setup
1. Clone or fork the repository :
```sh
# To clone
git clone https://github.com/5tigerjelly/chrome-extension-react-template
cd chrome-extension-react-template
```
2. Install the dependencies:
```sh
npm install
```
## 🏗️ Development
To start the development server:
```sh
npm run dev
```
This will start the Vite development server and open your default browser.
## 📦 Build
To create a production build:
```sh
npm run build
```
This will generate the build files in the `build` directory.
## 📂 Load Extension in Chrome
1. Open Chrome and navigate to `chrome://extensions/`.
2. Enable "Developer mode" using the toggle switch in the top right corner.
3. Click "Load unpacked" and select the `build` directory.
Your React app should now be loaded as a Chrome extension!
## 🗂️ Project Structure
- `public/`: Contains static files and the `manifest.json`.
- `src/`: Contains the React app source code.
- `vite.config.ts`: Vite configuration file.
- `tsconfig.json`: TypeScript configuration file.
- `package.json`: Contains the project dependencies and scripts.
## License
This project is licensed under the MIT License.# soltrendio-extension