Skip to content

Application qui permet de gérer des coupons de réduction

Notifications You must be signed in to change notification settings

jprecigout/coupon-generator-core

Repository files navigation

coupon-generator-core

Description

Générateur de coupon de réduction

Installation via docker

# generation des images
$ docker-compose build

# demarrage de la stack
$ docker-compose up

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Requêtes

# création
$ curl -d '{"isPercent":false, "amount": 5, "activate": true}' -H "Content-Type: application/json" -X POST http://localhost:3000/v1/coupons

# récupération d'un coupon
$ curl -X GET "http://localhost:3000/v1/coupons/5b4de5092fa29d5515f2aa1f"

# récupération des coupons
$ curl -X GET "http://localhost:3000/v1/coupons"

About

Application qui permet de gérer des coupons de réduction

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published