# minxa.lol โ€“ Frontend This is the **React-based frontend** for [minxa.lol](https://minxa.lol), a modern and lightweight URL shortener. --- ## ๐Ÿงฐ Tech Stack * **React** โ€“ Frontend UI framework * **TypeScript** โ€“ Typed JavaScript * **Create React App** โ€“ App bootstrap and tooling * **Tailwind CSS** โ€“ Utility-first styling * **Redux Toolkit** โ€“ State management --- ## โš™๏ธ Environment Setup ### 1. Install Dependencies ```bash npm install ``` ### 2. Create `.env` File ```bash cp .env.example .env ``` Edit the `.env` file to configure the API URL: ```env REACT_APP_API_BASE_URL=http://localhost:8000 ``` --- ## ๐Ÿš€ Running the Frontend ### Development Server ```bash npm start ``` This starts the development server on [http://localhost:3000](http://localhost:3000). ### Production Build ```bash npm run build ``` ### Test ```bash npm test ``` ### Docker (via Docker Compose) From the root of the project: ```bash python generate_configs.py docker compose -f docker-compose.generated.yml up --build -d ``` --- ## ๐Ÿ“ Directory Overview ``` frontend/ โ”œโ”€โ”€ public/ # Static assets โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ api/ # API functions โ”‚ โ”œโ”€โ”€ app/ # Redux store and hooks โ”‚ โ”œโ”€โ”€ features/ # Feature slices โ”‚ โ”œโ”€โ”€ pages/ # Page components โ”‚ โ”œโ”€โ”€ routes/ # App router โ”‚ โ””โ”€โ”€ utils/ # Client-side utilities โ”œโ”€โ”€ .env.example # Sample environment file โ”œโ”€โ”€ package.json # Project config and scripts โ”œโ”€โ”€ tailwind.config.js โ”œโ”€โ”€ tsconfig.json โ””โ”€โ”€ README.md ``` --- ## ๐Ÿงช Testing (Coming Soon) Testing will be supported via **React Testing Library** and **Jest**.