Skip to content

breejs/express-example

Repository files navigation

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=foo@gmail.com" 
    curl -X POST http://localhost:8080/book-ticket -d "email=foo@gmail.com" -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

About

This repository is just for example purposes.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published