A simple web application built with React, TypeScript, and Vite.
Make sure you have Node.js and npm installed on your machine.
node -v
npm -v- Clone the repository
git clone <repository_url>
cd alphabill-explorer-ui- Install dependencies
npm install- Start the development server
npm run dev- Build for production
npm run build- Preview the production build
npm run preview- Build the Docker image using the provided Dockerfile
docker build -t alphabill-explorer-ui .- Run the Docker container exposing port 80 to access the application
docker run -p 8080:80 -e BACKEND_URL="<backend-api-url>" alphabill-explorer-uiBACKEND_URL environment variable is injected into the container at runtime, allowing dynamic configuration of the backend API endpoint without needing to rebuild the Docker image.
This project uses ESLint for code quality and formatting. Run the following commands to lint the code:
- Lint code:
npm run lint - Fix lint issues:
npm run lint:fix