A React-based frontend application for the Fluentswap decentralized exchange demo.
- Node.js (version 18 or higher)
- npm or yarn package manager
-
Clone the repository
git clone <repository-url> cd fluentswap-demo-frontend
-
Install dependencies
npm install # or yarn install
-
Run the development server
npm run dev # or yarn dev
-
Open your browser Navigate to
http://localhost:5173
to view the application.
npm run dev
- Start the development server with hot reloadnpm run build
- Build the project for productionnpm run preview
- Preview the production build locallynpm run lint
- Run ESLint to check code quality
src/components/
- React components organized by featuresrc/pages/
- Page components and routingsrc/services/
- API and external service integrationssrc/store/
- State managementsrc/types/
- TypeScript type definitionssrc/utils/
- Utility functions and helpers
- React 18 with TypeScript
- Vite for build tooling and development server
- Tailwind CSS for styling
- ESLint for code quality
- Web3 integration for blockchain functionality
The project uses Vite for fast development with Hot Module Replacement (HMR). Any changes you make to the source code will automatically refresh in the browser.
To create a production build:
npm run build
The built files will be in the dist/
directory, ready for deployment.