https://github.com/breejs/express-example
This repository is just for example purposes.
https://github.com/breejs/express-example
Last synced: 4 months ago
JSON representation
This repository is just for example purposes.
- Host: GitHub
- URL: https://github.com/breejs/express-example
- Owner: breejs
- License: mit
- Created: 2020-07-14T21:04:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T01:32:38.000Z (over 1 year ago)
- Last Synced: 2025-09-20T23:51:07.085Z (10 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 19
- Watchers: 2
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# express-example
[](https://github.com/sindresorhus/xo)
[](https://github.com/prettier/prettier)
[](https://lass.js.org)
[](LICENSE)
> This repository is just for example purposes.
## Table of Contents
* [Example](#example)
* [Contributors](#contributors)
* [License](#license)
## 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:
```sh
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:
```sh
node app.js
```
```sh
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):
```sh
curl -X POST http://localhost:8080/send-email -d "email=foo@gmail.com"
```
```sh
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](app.js) and [bree.js](bree.js) for more insight.
## Contributors
| Name | Website |
| -------------- | -------------------------- |
| **Nick Baugh** | |
## License
[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)