Micro-service that notifies users by email about last events they subscribed to.
- Node.js and yarn cli from .tool-versions
- You may use asdf for the installation.
- Docker and docker-compose (Highly recommended)
- https://github.com/serlo/local-dev-env cloned
- https://github.com/serlo/api.serlo.org cloned
cd
toserlo/api.serlo.org
andyarn start
cd
toserlo/local-dev-env
andyarn start:without:api
After cloning this repo and cd
into it:
yarn
for installing dependencies.yarn start
for running local testing database and fake email client. 1yarn notify
- Navigate to the
http://localhost:4444/
to see your local mail client. 1 - Go to
serlo/local-dev-env
and hityarn mysql:rollback
to roll back the database changes. - When you are done,
yarn stop
.
For now this service uses info from API as an easy way of enriching the notification email body.
If you change any graphql query, use yarn codegen
.
Run yarn template
.
Run yarn test
.
We release new versions by hand. Run the following commands:
docker build . -t eu.gcr.io/serlo-shared/notification-mail:${new version}
docker push eu.gcr.io/serlo-shared/notification-mail:${new version}
Use yarn mysql
to prompt to the cli of your local database.
Use yarn format
for linting and formatting.