- Node.js
- npm
# Clone the repository
git clone https://github.com/yourusername/lc_cmd_react.git
cd lc_cmd_react
# Install dependencies
npm installStart the development server:
npm run devThis will run the application in development mode using the configuration in env.dev.ts.
The project uses separate configuration files for development and production environments:
env.dev.ts- For development (P&W main)env.dev-test.ts- For development (P&W test)env.main.ts- Production (P&W main)env.test.ts- Production (P&W test)
To modify environment variables, edit the appropriate file. The values for your bot/site will differ.
Important: For the application to function properly, you need to either:
- Host the backend yourself and configure it with your frontend URL, or
- Request whoever is hosting the backend to whitelist your domain/URL
npm run buildThis will generate production-ready files in the dist directory using the configuration in env.prod.ts.
This project is configured for easy deployment to GitHub Pages:
- Ensure your vite.config.ts has the correct base path:
base: '/<repository-name>/', // Replace with your repository name- Deploy using npm scripts:
npm run deployFor alternative deployment options:
AGPL