diff --git a/README.md b/README.md index e785dd8..7ce338f 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,42 @@
-GHBanner + GHBanner
-# Run and deploy your AI Studio app +# Email Template Builder -This contains everything you need to run your app locally. - -View your app in AI Studio: https://ai.studio/apps/drive/1PJrPIeFdvYwt0ImdYe7PMH6YCDGTYQxH +Uno strumento visuale per creare, gestire ed esportare template email HTML con placeholder dinamici. ## Run Locally -**Prerequisites:** Node.js +**Prerequisites:** Node.js - -1. Install dependencies: - `npm install` +1. Install dependencies: `npm install` 2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key -3. Run the app: - `npm run dev` +3. Run the app: `npm run dev` + +## Deploy with Docker + +This application can be deployed as a complete stack with its own MySQL database: + +1. Set your `GEMINI_API_KEY` in the environment variables +2. Run `docker-compose up -d` to start the stack +3. Access the application at `http://localhost:3000` + +The stack includes: +- Frontend/Backend service (Node.js + React) +- MySQL database (with persistent data) +- Automatic database initialization + +## Deploy on Portainer + +To deploy on Portainer as a stack: + +1. Create a new stack in Portainer +2. Copy the contents of [docker-compose.yml](docker-compose.yml) into the editor +3. Add your `API_KEY` environment variable in the Portainer interface +4. Deploy the stack + +The application will automatically: +- Create and initialize the MySQL database +- Start the application service +- Connect to the internal database