Prerequisites
Before installing Exchange Web, ensure you have the following tools installed on your system.Required
Node.js 18 or higher
Exchange Web requires Node.js version 18 or above.Check your Node.js version:Download from nodejs.org if needed.
Package manager
You’ll need one of the following package managers:npm
Comes bundled with Node.js
Yarn
Recommended (project uses Yarn 1.22.22)
pnpm
Fast, disk-efficient alternative
The project specifies
"packageManager": "[email protected]" in package.json, but any package manager will work.Installation steps
Follow these steps to install Exchange Web on your local machine.Install dependencies
Install all workspace dependencies from the root:This installs dependencies for all workspaces:
apps/web- Main trading applicationpackages/ui- Shared UI componentspackages/eslint-config- ESLint configurationpackages/typescript-config- TypeScript configuration
The installation may take a few minutes depending on your internet connection.
Project structure
Exchange Web uses a monorepo structure managed by Turbo:Environment setup
Exchange Web works out of the box without environment variables for local development.Optional: Configure backend URL
If you need to point to a specific backend API:- Check the API requests in
apps/web/src/utils/requests.ts - Update the base URLs to match your backend endpoints
- Configure WebSocket URLs in
apps/web/src/utils/ws_manager.ts
Running the application
Once installed, you can run Exchange Web in development mode:http://localhost:5173.
Build for production
To create a production build:Preview production build
To preview the production build locally:Troubleshooting
Common installation issues and their solutions:Node version error
Port already in use
Error: “Port 5173 is already in use”Solution: Either kill the process using port 5173, or specify a different port:
Workspace installation fails
TypeScript errors on build
Development tools
Optional but recommended tools for Exchange Web development:- VS Code - Editor with excellent TypeScript support
- React DevTools - Browser extension for debugging React components
- Redux DevTools - For inspecting context state (if you add Redux)
- Tailwind CSS IntelliSense - VS Code extension for Tailwind autocomplete
Next steps
Quickstart guide
Learn how to run and use Exchange Web
Source code
Explore the codebase on GitHub