diff --git a/Dockerfile.txt b/Dockerfile.txt new file mode 100644 index 0000000..6bb5c71 --- /dev/null +++ b/Dockerfile.txt @@ -0,0 +1,43 @@ +# Stage 1: Build the React Application +FROM node:20-alpine AS builder + +WORKDIR /app + +# Copy package.json to install dependencies first (better caching) +COPY package.json ./ + +# Install all dependencies (including devDependencies for the build process) +RUN npm install + +# Copy the rest of the application source code +COPY . . + +# Build the frontend assets (Vite will output to /app/dist) +RUN npm run build + +# Stage 2: Setup the Production Server (Node.js) +FROM node:20-alpine + +WORKDIR /app + +# Copy package.json again for production dependencies +COPY package.json ./ + +# Install ONLY production dependencies (skips devDependencies like Vite/Typescript) +RUN npm install --omit=dev + +# Copy the built frontend assets from the 'builder' stage +COPY --from=builder /app/dist ./dist + +# Copy the server entry point +COPY server.js ./ + +# Set environment variables (defaults) +ENV NODE_ENV=production +ENV PORT=3000 + +# Expose the port the app runs on +EXPOSE 3000 + +# Start the Node.js server +CMD ["npm", "start"] \ No newline at end of file diff --git a/README.md b/README.md index d366559..e785dd8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ -# EmailManager -Email manager UniSa +
Gentile {{first_name}},
+This is a default message body.
+© 2024 My Company. All rights reserved.
+{nameError}
} +Must be unique. Used to generate the database key: {generateTemplateKey(name) || '...'}
++ Use the "Variable" button in the toolbar to insert placeholders like {'{{name}}'}. +
+{subject.replace(/\{\{([\w\d_-]+)\}\}/g, (match, p1) => `${match}`)}
+
+ {currentInsertSql}
+
+
+
+ {currentSelectSql}
+
+
+
+ {currentN8nCode}
+
+
+
+ Paste this into a Code Node connected after your SQL node. Replace REPLACE_WITH_VALUE with your actual data variables (e.g. $('NodeName').item.json.name).
+
+ Describe what you want for the {activeTab} section. + The AI will generate HTML code with placeholders. +
+Manage HTML templates for your n8n workflows
+Get started by creating your first HTML email template for automation.
+ ++ {t.description || 'No description provided.'} +
+