This is a module used for creating messages that should be sent to a user. The message will be queued and ready to be sent by another module.
The following guide will help you install the Messages module. Before installning this module you should make sure the API Gateway module is up and runing, as this is required to be able to run other services in the system.
- A working MySQL server
- The API Gateway should already be up and running
git clone https://github.com/MakersOfSweden/MakerAdmin-Messages
cd ./MakerAdmin-Messages/docker/
Create a new database and user in your MySQL database server.
CREATE USER `makeradmin-messages`@'%' IDENTIFIED BY 'password';
CREATE DATABASE `makeradmin-messages`;
GRANT ALL ON `makeradmin-messages`.* TO `makeradmin-messages`@'%';
FLUSH PRIVILEGES;
The following script will build a new docker container and tag it with the correct name and version.
./docker_build
You can now start an instance of the Messages module and register it in the MakerAdmin system. Make sure you specify the database credentials specified in step 2. The last parameter should be the address to the API gateway. Keep in mind that this is the hostname provided by Docker, so it should be the same as the name of the container.
./docker_run mysql makeradmin-messages password makeradmin-messages makeradmin-apigateway
To create the database table you have to run the migration scripts.
./artisan migrate
The service should now be up and running and should be possible to access from the API.