This repository is just for example purposes.
This repository is just for example purposes. If you want to run this example locally, then follow these steps:
-
Clone the repository locally and install dependencies:
git clone https://github.com/breejs/express-example.git cd express-example npm install
-
Start the
app.js
andbree.js
processes in separate terminal windows at the same time:node app.js
node bree.js
-
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"
-
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.
Name | Website |
---|---|
Nick Baugh | http://niftylettuce.com/ |