Giter Site home page Giter Site logo

mtstore.auth's Introduction

MTStore Authentication

Authentication API for MTStore platform.

🚀 Starting

Instruction to download a local environmet to devlopment and testing.

📋 Pre-reqs

set JAVA_HOME=C:\jdk-17.0.1
set PATH=%JAVA_HOME%\bin; %PATH%
set M2_HOME=C:\apache-maven-3.8.5
set M2=%M2_HOME%\bin
set PATH=%M2%; %PATH%
Windows

Edite: %KAFKA_HOME%\config\server.properties
zookeeper.connection.timeout.ms=60000
#broker.id=0
log.dirs=/kafka_2.13-3.1.0/data/kafka

Edite: %KAFKA_HOME%\config\zookeeper.properties
dataDir=/kafka_2.13-3.1.0/data/zookeeper
set KAFKA_HOME=C:\kafka_2.13-3.1.0
set PATH = %KAFKA_HOME%; %PATH%
%KAFKA_HOME%\bin\windows\zookeeper-server-start.bat %KAFKA_HOME%\config\zookeeper.properties
%KAFKA_HOME%\bin\windows\kafka-server-start.bat %KAFKA_HOME%\config\server.properties

🔧 Instalação

Importe os end-points no Postman:

⚙️ Executando os testes

Maven

mvn clean install

📦 Desenvolvimento

Executando a amplicação no ambiente de desenvolvimento:

java -jar .\Autenticacao.SpringApp\target\Autenticacao.SpringApp.jar

📐 Referencia de Arquitetura

Arquitetura Hexagonal

Arquitetura Hexagonal

📃 Notas do Teste

  • Há comentários no //TODO: Apresentar por todo o projeto para mostrar os padrões utilizados
  • Ao criar um novo cartão foi ocultado a senha, por questão de segurança e reaproveitamento do objeto de retorno
  • No cenário de criação de um novo Cartão, quando o Cartão já existe, foi decidido retornar status 422 com a mensagem de erro:
Cartão com número xxx já cadastrado
  • Ao retornar erro é retornado um objeto com a propriedade erro contendo a mensagem de erro.

📌 Versão

Usado SemVer para controle de versão. Para as versões disponíveis, observe as tags neste repositório.

✒️ Autores


mtstore.auth's People

Contributors

rodsordi 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.