Git Product home page Git Product logo

app-deliver-email's Introduction

App-deliver-email

Backend app to test the deliver-email-service.

How to

First clone this repo then open your docker-compose.yml file. By default the deliver-email-service is set to "development". It is also set to "smtp".

Be sure to let the migration service do its work! wait until you see logs from the migration service telling you that the migration is [DONE]

Check for migrations

run the following query at http://localhost:8890/sparql


PREFIX nmo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#>
PREFIX fni: <http://www.semanticdesktop.org/ontologies/2007/03/22/fni#>
PREFIX nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#>

SELECT ?mailfolders
  WHERE {
    GRAPH <http://mu.semte.ch/graphs/system/email> {
      <http://data.lblod.info/id/mailboxes/1> nie:hasPart ?mailfolders.
    }
  }
    

If the mailfolders column is empty it means that it has not finished yet, if you see 6 folder uri's then you are good to go.

SMTP

If you want to use a temporary testing mailbox where you will receive the emails, then skip this part and go to "TEST"

If you want to use "smtp" as your protocol and send/receive the emails from a specific mailbox then you will have to change the following environment variables
WELL_KNOWN_SERVICE,
EMAIL_ADDRESS,
EMAIL_PASSWORD,
FROM_NAME(optional).
Do not forget to assign the path in volumes to where the deliver-email-service is cloned so you can develop with live-reload

    volumes:
      - /path/to/local/cloned/deliver-email-service/folder/:/app/

As soon as you have done that you can simple start the app.

docker-compose up

Inspect the logs and wait for the migrations to happen. After that you should be good to go.

TEST

For use with a temporary mailbox you can simply change the WELL_KNOWN_SERVICE env to "test". This will go through the same process as any other smtp service expect that for every email, you will receive a preview url where you can find more details about the email.

    environment:
      NODE_ENV: "development"
      WELL_KNOWN_SERVICE: "test"

More Detailed information can be found on the deliver-email-service repo

app-deliver-email's People

Contributors

aatauil avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.