# Mealz components

The Mealz Components project leverages [Lit](https://lit.dev/) to provide server-side rendering web components.

## Prerequisites
- [Node.js](https://nodejs.org/en): Version 18.x or higher
- Python 3

## Installation
1. Clone the repository:
```bash
git clone https://gitlab.com/miam/mealz-components.git
cd mealz-components
```

2. Install dependencies
```bash
npm install
```

## Building components
To build the components and generate the necessary JavaScript and CSS files, use the following command:

```bash
npx vite build --watch --config vite.config.js
```

This command will continuously monitor your files for changes and update the build output accordingly.

## Development server

To serve the generated files, start the development server with:
```bash
python3 server.py
```
After starting the server, you can access the components at `http://localhost:3004/`.