A backend API for generating and managing email templates. This API supports uploading images, storing template configurations, and generating dynamic email content. It serves as the backend for an email builder app that integrates with both frontend and third-party services.
- Generate dynamic email templates.
- Upload and manage images (for email content).
- Store and retrieve email template configurations.
- Support for email template versioning.
- Secure authentication and access control.
- API endpoints to interact with templates and image resources.
- Node.js
- Express.js
- MongoDB (or any other database)
- Multer (for handling file uploads)
- JWT (for secure authentication)
- dotenv (for environment variables)
Clone the repository to your local machine:
git clone <repository-url>
cd email-builder-apiMake sure you have Node.js and npm installed. Then, install the necessary dependencies:
npm installCreate a .env file in the root of the project and add the necessary environment variables. Example:
PORT=5000
FRONTEND_URL=http://localhost:3000
MONGO_URI=mongodb://localhost:27017/email-builder
UPLOADS_DIR=uploadsOnce the environment variables are set, you can start the development server:
npm run devstartFor production, you can run:
npm run build
npm startThis will build the app and run the server in production mode.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Please ensure your code follows the coding standards and includes appropriate tests.