Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

ingkarinamora/tdd_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdd_example

This workshop will help to practice TDD.

Prerequisites:

First we will create a Monolithic:

1.- One end point should have the following data:

  • An identifier type that should be one of the following types: Cedula Passport RUC
  • An identifier number that should have a valid structure for each type
  • A first name and last name that should not be empty
  • The accounts numbers with their initial amount that should be al least of $200 This input should be validated and the customer should be persisted in a MongoDb database, giving the appropriate response.

2.- Another service should register money deposit for a customer, by using the following data:

  • An account number
  • An amount of money deposited This deposit should be persisted and the customer should be persisted, giving the appropriate response.

3.- Another endpoint should retrieve the customer:

  • An identifier type that should be one of the following types: Cedula Passport RUC
  • An identifier number that should have a valid structure for each type

4.- Another endpoint should retrieve all the deposits for a given customer by account:

  • An identifier type that should be one of the following types: Cedula Passport RUC
  • An identifier number that should have a valid structure for each type

Tech stuff:

  • docker build -t debian-mongo .
  • docker run -it --entrypoint=/bin/bash debian-mongo
  • docker ps
  • docker exec -t -i [IMAGE_NAME] /bin/bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages