express-example
express-example copied to clipboard
This repository is just for example purposes.
express-example
This repository is just for example purposes.
Table of Contents
- Example
- Contributors
- License
Example
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.jsandbree.jsprocesses in separate terminal windows at the same time:node app.jsnode 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 protected]"curl -X POST http://localhost:8080/book-ticket -d "[email protected]" -d "start_time=7/14/20 4:00 PM" -
You can modify the payload
-dparameter 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