An application that provides an API service for generating HTML email templates. The service is built using Express.js and React, with Tailwind CSS for styling. It allows clients to submit problem descriptions, and the service will generate a complete HTML email using React components.
This project is a back-end service built with Express.js and React, using Tailwind CSS for styling. It is designed to generate HTML emails based on input data provided by clients. The service can be used as a standalone microservice or integrated into larger systems that require email generation functionality.
- API for Email Generation
- Submit problem data and generate styled HTML emails.
- Optional solution content in emails.
- React-based Email Templates
- Modularized components for easy customization.
- Tailwind CSS for consistent and responsive styling.
Clone the repository.
git clone https://github.com/daily-coding-problem/email-service.git
cd email-service
Install the dependencies.
pnpm install
Start the development server.
pnpm start
Open http://localhost:3000 to access the service.
Build the Docker image.
docker compose build
Run the Docker container.
docker compose up
Run the tests with the following command:
npm test
To test the GitHub Actions via Docker, execute the following:
docker compose down -v && docker compose up --build github-action-jest-tests
The API is documented using Swagger. After starting the server, you can access the API documentation at:
http://localhost:3000/api-docs
This project is licensed under the MIT License - see the LICENSE file for details.