# Magpie Frontend A modern web application frontend built with TypeScript, Vite, and Tailwind CSS. ## ๐Ÿš€ Features - **Modern Stack**: Built with Vite for fast development and optimized builds - **TypeScript**: Full type safety and enhanced developer experience - **Tailwind CSS**: Utility-first CSS framework for rapid UI development - **ESLint**: Code linting for consistent code quality - **PostCSS**: Advanced CSS processing ## ๐Ÿ› ๏ธ Tech Stack - **Build Tool**: Vite - **Language**: TypeScript - **Styling**: Tailwind CSS - **Linting**: ESLint - **CSS Processing**: PostCSS ## ๐Ÿ“ Project Structure ``` magpie-frontend/ โ”œโ”€โ”€ .bolt/ # Bolt configuration โ”œโ”€โ”€ public/ # Static assets โ”œโ”€โ”€ src/ # Source code โ”œโ”€โ”€ .gitignore # Git ignore rules โ”œโ”€โ”€ eslint.config.js # ESLint configuration โ”œโ”€โ”€ index.html # Main HTML template โ”œโ”€โ”€ package.json # Dependencies and scripts โ”œโ”€โ”€ postcss.config.js # PostCSS configuration โ”œโ”€โ”€ tailwind.config.js # Tailwind CSS configuration โ”œโ”€โ”€ tsconfig.*.json # TypeScript configurations โ””โ”€โ”€ vite.config.ts # Vite configuration ``` ## ๐Ÿš€ Getting Started ### Prerequisites - Node.js (v18 or higher recommended) - npm or yarn package manager ### Installation 1. Clone the repository: ```bash git clone https://git.admonitum.com/david/magpie-frontend.git cd magpie-frontend ``` 2. Install dependencies: ```bash npm install ``` ### Development Start the development server: ```bash npm run dev ``` The application will be available at `http://localhost:5173` (or another port if 5173 is occupied). ### Building for Production Build the application for production: ```bash npm run build ``` The built files will be generated in the `dist/` directory. ### Preview Production Build Preview the production build locally: ```bash npm run preview ``` ## ๐Ÿงช Development Tools ### Linting Run ESLint to check code quality: ```bash npm run lint ``` Fix linting issues automatically: ```bash npm run lint:fix ``` ### Type Checking Run TypeScript type checking: ```bash npm run type-check ``` ## ๐Ÿ”ง Configuration ### Tailwind CSS The project uses Tailwind CSS for styling. Configuration can be found in `tailwind.config.js`. ### TypeScript TypeScript configuration is split into multiple files: - `tsconfig.json` - Base configuration - `tsconfig.app.json` - Application-specific configuration - `tsconfig.node.json` - Node.js specific configuration ### Vite Vite configuration is in `vite.config.ts` and includes TypeScript support and other optimizations. ## ๐Ÿ“š Scripts | Command | Description | |---------|-------------| | `npm run dev` | Start development server | | `npm run build` | Build for production | | `npm run preview` | Preview production build | | `npm run lint` | Run ESLint | | `npm run type-check` | Run TypeScript type checking | ## ๐Ÿค Contributing 1. Fork the repository 2. Create a feature branch (`git checkout -b feature/amazing-feature`) 3. Commit your changes (`git commit -m 'Add some amazing feature'`) 4. Push to the branch (`git push origin feature/amazing-feature`) 5. Open a Pull Request ## ๐Ÿ“„ License This project is licensed under the [BSD License](LICENSE). ## ๐Ÿ› Issues If you encounter any issues or have suggestions, please [open an issue](https://git.admonitum.com/david/magpie-frontend/issues) on the repository. --- **Last Updated**: June 2025