This project marks the glue between the weblingservice and Mailchimp. It uses and wraps Mailchimp's REST API.
It is based on the fabulous Laravel framework to speed up the development. Check out the docs and start contributing 😍.
... is cool, simple and helps to make the 🌍 a better place 🤩
- Install docker
- Start docker
- Clone this repo
git clone https://github.com/grueneschweiz/mailchimpservice.git
cd
into the folder containing the repo- Execute
docker compose run app composer install
and have a ☕️ while it installs. - Execute
docker compose run app sh -c 'cp .env.example .env && php artisan key:generate'
to generate the app secrets. - Execute
docker compose up -d
to start up the stack. The first time you run this command, it will take a minute or two. Subsequent calls will be much faster. - Do the db migrations:
docker exec -it wsapp_mailchimp bash
andphp artisan migrate
- After a few seconds: Visit localhost:9001. If you get a connection error, wait 30 seconds then try again.
-
Install:
docker compose run app composer install
-
Start up:
docker compose up -d
-
Shut down:
docker compose down
-
Execute Laravel CLI commands (enter container):
docker exec -it wsapp_mailchimp bash
useexit
to escape the container.- add your first entry
php artisan endpoint:add myconfigfile.yml
- sync an instance
php artisan sync:all toMailchimp myconfigfile.yml --limit=10
- add your first entry
-
Add dependency using composer:
docker compose run app composer require DEPENDENCY
In the main folder run php vendor/phpunit/phpunit/phpunit tests
to run the tests locally.
All mail you send out of the application will be caught by Mailhog
Use the handy phpMyAdmin or access the mysql CLI using
docker exec -it wsmysql_mailchimp mysql --user=laravel --password=laravel laravel