Giter Site home page Giter Site logo

ibm's Introduction

Clean Architecture - IBM Assessment

How it works:

1. Docker. First, you need to install docker

  • Then open the terminal and check:
docker info

or check docker version

docker -v

and docker compose version

docker-compose -v

2. Spring boot app

  • Clone the repository:
git clone https://github.com/ramsantos/ibm.git
  • Build the maven project:
./mvnw clean package -DskipTests

Run Spring Boot App & PostgreSQL

  • Build and Running the containers:

This command will build the docker containers and start them.

docker-compose up --build

Guide for using endpoints the app:

DOWNLOAD POSTMAN COLLECTION

URL BASE =http://localhost:8080

To include an address stating the TipoEnderecoEnum.

Enums availables:

RESIDENCIAL, COMERCIAL, NAO_ESPECIFICADO

  • POST request to /api/cliente with a object as JSON creates a new "Cliente";
  • PUT request to /api/cliente with a object as JSON updates the "Cliente" with UUID informed;
  • GET request to /api/cliente?nome=Ricardo&cpf=02404626188 returns the "Cliente" with NAME Ricardo and CPF 02404626188;
  • DELETE request to /api/cliente/0ada8da5-3abb-4c58-942f-7ca2d4fbc7bc deletes the "Cliente" with UUID "0ada8da5-3abb-4c58-942f-7ca2d4fbc7bc";

4. Docker control commands

  • Check all the images you have:
docker images

5. End stop app

  • Stop containers:
docker-compose down
  • Remove old stopped containers of docker-compose
docker-compose rm -f

ibm's People

Contributors

little-richard avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.