Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.82 KB

README.md

File metadata and controls

62 lines (39 loc) · 1.82 KB

express-example

code style styled with prettier made with lass license

This repository is just for example purposes.

Table of Contents

Example

This repository is just for example purposes. If you want to run this example locally, then follow these steps:

  1. Clone the repository locally and install dependencies:

    git clone https://github.com/breejs/express-example.git
    cd express-example
    npm install
  2. Start the app.js and bree.js processes in separate terminal windows at the same time:

    node app.js
    node bree.js
  3. Send example requests to the server (this will automatically open a browser tab for you with the rendered emails when they're sent):

    curl -X POST http://localhost:8080/send-email -d "[email protected]" 
    curl -X POST http://localhost:8080/book-ticket -d "[email protected]" -d "start_time=7/14/20 4:00 PM"
  4. You can modify the payload -d parameter values in the previous example requests if you wish to test different "movie start times" or email addresses. See the code in app.js and bree.js for more insight.

Contributors

Name Website
Nick Baugh http://niftylettuce.com/

License

MIT © Nick Baugh