<commit_before># Coupon Service

REST API service for discount coupons/vouchers, built in Node.js.

Inspired by the [Stripe API](https://stripe.com/docs/api#coupons), but sometimes you need coupons without credit cards.
Also supports discounts based on (partial) email addresses, e.g. “<EMAIL>”.


## How to Run

Just start with:

	# Set password used in API requests
	export API_PASSWORD=<PASSWORD>

	grunt

Server will default to **http://localhost:3014**


## Entities

### Coupon

* `_id` (string)
* `created` (date)
<commit_msg>ReadMe with Weld animated GIF<commit_after># Coupon Service

REST API service for discount coupons/vouchers, built in Node.js.

Inspired by the [Stripe API](https://stripe.com/docs/api#coupons), but sometimes you need coupons without credit cards.
Also supports discounts based on (partial) email addresses, e.g. “every<EMAIL>”.

Made by the team at **Weld** ([www.weld.io](https://www.weld.io?utm_source=github-coupon-service)), the code-free app and web creation tool:

[![Weld](https://s3-eu-west-1.amazonaws.com/weld-social-and-blog/gif/weld_explained.gif)](https://www.weld.io?utm_source=github-coupon-service)


## How to Run

Just start with:

	# Set password used in API requests
	export API_PASSWORD=<PASSWORD>

	grunt

Server will default to **http://localhost:3014**


## Entities

### Coupon

* `_id` (string)
* `created` (date)

{'fraction_non_alphanumeric': 0.13027656477438138, 'fraction_numerical': 0.00727802037845706, 'mean_word_length': 4.658436213991769, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3536198', 'n_tokens_mistral': 484, 'n_tokens_neox': 467, 'n_words': 141}