Prerequisites
Before installing Raze, ensure you have the following:Node.js
Version 18 or later recommended
npm
Comes bundled with Node.js
Verify your Node.js version by running
node --version in your terminalQuick Start
1. Clone the Repository
2. Install Dependencies
3. Start Development Server
The development server will start at
http://localhost:5173One-Click Deployment
Prefer not to run locally? Deploy instantly to the cloud:Production Build
Build for Production
- Run TypeScript type checking
- Generate HTML from templates
- Bundle and optimize the application
Preview Production Build
Deploy the dist Folder
After building, deploy the contents of the dist folder to your hosting provider.
Available Scripts
| Command | Description |
|---|---|
npm run dev | Start development server with hot reload |
npm run build | Build for production |
npm run preview | Preview production build locally |
npm run lint | Run ESLint for code quality |
npm run typecheck | Run TypeScript type checking |
npm run analyze | Analyze bundle size |
npm run generate-html | Regenerate HTML from template |
Project Structure
Configuration
Environment Setup
Raze uses a configuration system stored in the browser. Key settings include:Configure multiple RPC endpoints with weighted load balancing
Optional self-hosted trading server URL
Data stream API key for real-time market data
Brand Configuration
Customize branding by editingbrand.json:
Theme Customization
Editgreen.css or create a new theme file:
Troubleshooting
Port 5173 already in use
Port 5173 already in use
The dev server defaults to port 5173. If it’s in use, Vite will automatically try the next available port. You can also specify a port:
Node.js version errors
Node.js version errors
Build fails with TypeScript errors
Build fails with TypeScript errors
Run type checking separately to see detailed errors:
RPC connection issues
RPC connection issues
Configure multiple RPC endpoints in Settings for redundancy. The app will automatically rotate between endpoints if one fails.
