MCPcopy Index your code
hub / github.com/Badsender-com/LePatron.email

github.com/Badsender-com/LePatron.email @v3.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.1.0 ↗ · + Follow
2,382 symbols 6,578 edges 263 files 153 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Logo

LePatron.email

Open source email builder






<a href="https://github.com/Badsender-com/LePatron.email/issues">Report Bug</a>
·
<a href="https://github.com/Badsender-com/LePatron.email/issues">Request Feature</a>

About The Project

LePatron is an email builder allowing to industrialize your email template production. Build tailor made email templates and make them available to your non-technical users.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

You will need the following tools to be able to run the project locally:

  • Node
  • Yarn
  • Docker 💡 Make sure you can run docker-compose in you terminal

Installation

  1. Clone the repo

sh git clone https://github.com/Badsender-com/LePatron.email.git

  1. Install NPM packages

bash yarn yarn build

  1. Run the local database

bash yarn docker:up

(You will be able to stop the docker compose with yarn docker:down)

  1. Run the application

bash yarn dev

The application is available on localhost:3000

Login with

  • Email: admin
  • Password: admin

A catch all mailbox is available on localhost:1080

Database access

  • You need MongoDB on your computer. If you haven't, you can install MongoDB Compass
  • Install the version you need
  • In a shell terminal, launch the following commands:
docker ps # Check if your database docker container is launched
docker exec -it lepatron_mongo_container bash # Run command prompt on your docker container
mongo # To see the mongo connection name
  • The connection name looks something like mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
  • Remove all the queries parameters to have : mongodb://127.0.0.1:27017/
  • Paste it in MongoDB Compass UI
  • You have access to your database

Documentation generation

Run application documentation

yarn docs:dev

Build application documentation

yarn docs:dev:build

Run API documentation

yarn docs:api

Build API documentation

yarn docs:api:build

Tests

When you open a feature / fix PR, make sure to include tests that covers this feature.

Units tests are written using the jest testing framework.

yarn test # run tests in watch mode, usefull when developing
yarn test-ci # run all tests, no watch. Mainly used in the CI

Deployment

Instructions on how to deploy on Heroku and CleverCloud are provided in the readme file.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feat/AmazingFeature)
  5. Open a Pull Request

Troubleshooting

If you encounter this error during documentation generation :

(node:24453) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, scandir '.../.mongodb/diagnostic.data'

Simply give access to .mongodb folder to your user :

chown $(whoami):$(whoami) -R ./.mongodb

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

Contact

Project Link: https://lepatron.email/

Core symbols most depended-on inside this repo

Shape

Method 1,368
Function 934
Class 80

Languages

TypeScript100%

Modules by API surface

public/source/components/smart.ui.tree.js752 symbols
public/source/modules/smart.tree.js622 symbols
packages/ui/helpers/api-routes.js54 symbols
packages/editor/src/js/ext/link-with-color.js34 symbols
packages/server/mailing/mailing.service.js31 symbols
packages/editor/src/js/bindings/image-editor.js30 symbols
packages/server/esp/actito/actitoProvider.js25 symbols
gulpfile.js23 symbols
packages/server/image/image.controller.js22 symbols
packages/server/esp/adobe/adobeProvider.js22 symbols
packages/ui/store/folder.js21 symbols
packages/server/profile/profile.service.js19 symbols

Datastores touched

(mongodb)Database · 1 repos
badsenderDatabase · 1 repos
lepatronDatabase · 1 repos

For agents

$ claude mcp add LePatron.email \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page