Prerequisites
Before you begin, ensure you have the following installed:Install Node.js
You need Node.js version 20 or higher. Download it from nodejs.org.
Install Git
Install Git for version control. Download it from git-scm.com.
Install Rust (optional)
Only required if you plan to work on the Tauri desktop app. Install from rustup.rs.
Clone the repository
Clone the TryDevUtils repository to your local machine:Install dependencies
Install all npm dependencies:package.json, including:
- React and React DOM
- TypeScript
- Vite (build tool)
- Playwright (testing)
- ESLint (linting)
- Radix UI components
- Tauri CLI (desktop app)
Development servers
You can run different development servers depending on what you’re working on.Web app
Start the web development server:Desktop app (Tauri)
Start the Tauri development server:Chrome extension
Build the extension and load it in Chrome:Load in Chrome
- Open Chrome and navigate to
chrome://extensions/ - Enable “Developer mode” (toggle in top-right)
- Click “Load unpacked”
- Select the
dist-extension/directory
Project structure
Understand the key directories in the project:Environment variables
TryDevUtils doesn’t require environment variables for local development. All utilities run entirely in the browser without external API calls. If you need to configure Vite, you can create a.env file:
Code quality tools
Type checking
Run TypeScript type checking:tsc && vite build to verify types and build the project.
Linting
Run ESLint to check code quality:- ESLint with TypeScript support
- React Hooks linting
- React Refresh linting
eslint.config.js
Development workflow
Follow this workflow when developing new features:Troubleshooting
Port already in use
If port 8080 is already in use, Vite will automatically try the next available port. You can also specify a different port:Tauri build fails
Ensure you have all platform-specific dependencies:- macOS: Xcode Command Line Tools
- Linux:
webkit2gtk-4.1,libappindicator3,librsvg2 - Windows: Microsoft Visual Studio C++ Build Tools
Module not found errors
Clear node_modules and reinstall:Next steps
- Learn about the build process
- Explore the testing guide
- Read about deployment