Skip to content

kschltz/lanchonete

Repository files navigation

lanchonete

Software criado para pós graduação FIAP

  1. Project Description
  2. Coverage Status
  3. Run in Postman
  4. Miro Board for Event Storming and Storytelling
  5. Application Routes Documentation
  6. Database Documentation
  7. Installation
  8. Usage
  9. ZAP OWASP Scan
  10. License

Coverage Status

Run in Postman

ps: caso tenha problema para rodar os testes diretamente pelo link acima, a collection pode ser acessada tbm por este link ou ainda diretamente pelo arquivo neste link

obs: não esquecer de ativar o ambiente dev no postman

Miro Board para Event Storming e Storytelling

miro

Documentação de Rotas da aplicaçao

doc

Documentação do banco de dados

doc

Installation

Download from https://github.com/kschltz/lanchonete

Usage

Kubernetes

You can run/deploy the project in Kubernetes using the following command:

kubectl apply -f k8s/postgre/ && kubectl apply -f k8s/lanchonete/

kubernetes development

If you are using minikube you can run the following helper script to start a fresh minikube and load everything you need:

    ./bin/minikube-ground-up.sh

It will:

  • 1 - Delete the current minikube
  • 2 - Create a new minikube
  • 3 - build the app image
  • 4 - load de image
  • 5 - apply the k8s files
  • 7 - enable the metrics addon
  • 8 - open up minikube tunnel for connectivity
You can see what the generated artifacts look like in the architecture diagrams

architecture documentation

Docker compose

From the root of the project, run:

docker-compose up --build

Clojure

Run the project in dev environment:

clojure -A:dev:test

Run the project directly, via :main-opts (-m mba-fiap.lanchonete):

clojure -M:run-m

Run the project's tests:

clojure -T:build test

Run the project's CI pipeline and build an uberjar:

clojure -T:build ci

This will produce an updated pom.xml file with synchronized dependencies inside the META-INF directory inside target/classes and the uberjar in target. You can update the version (and SCM tag) information in generated pom.xml by updating build.clj.

If you don't want the pom.xml file in your project, you can remove it. The ci task will still generate a minimal pom.xml as part of the uber task, unless you remove version from build.clj.

Run that uberjar:

java -jar target/lanchonete-0.1.0-SNAPSHOT.jar

ZAP OWASP scan

Dentro da pasta /doc/zap temos um report gerado das rotas [POST] /pedido e [GET] /produtos/lanche após um scan do ZAP OWASP.

Não temos contexto no cenário atual do app de rotas expostas para pagamento, sendo assim, o contexto de pagamento não pode ser filtrado e analisado pelo ZAP OWASP.

Esse fluxo de pagamento está centralizado na arquitetura SAGA.

RIPD Report - Relatório de Impacto à Proteção de Dados

RIPD - Lanchonete FIAP

License

Copyright © 2023 Kschltz

EPLv1.0 is just the default for projects generated by clj-new: you are not required to open source this project, nor are you required to use EPLv1.0! Feel free to remove or change the LICENSE file and remove or update this section of the README.md file!

Distributed under the Eclipse Public License version 1.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors