Wednesday, June 10, 2020

Angular + Spring Boot + MongoDb


MEAN = mongodb + ECS15 + Angular + Node

Iremos fazer uma aplicação para cadastro de sensores. Para esse tutorial estou seguindo o seguinte artigo:
https://www.javaguides.net/2020/01/spring-boot-angular-9-crud-part-1-develop-springboot-crud-rest-apis.html

Para o mongoDB:
]https://www.javaguides.net/2019/12/spring-boot-mongodb-crud-example-tutorial.html
https://www.javaguides.net/p/java-mongodb-tutorial.html

1) Criando e importando um projeto: https://start.spring.io/



  • Generate: Maven Project
  • Java Version: 14
  • Spring Boot:2.3.0
  • Group: br.com.heliot
  • Artifact: heliot
  • Name: heliot
  • Description: Heterogeneity less in IoT
  • Package Name : br.com.heliot.heliotproject
  • Packaging: jar (This is the default value)
  • Dependencies: Spring Boot Dev Tools, Spring Web, Spring Data Mongo


Fazer o download e importar o projeto para o eclipse (import existing maven projects).

Requisitos para o Angular:

node -v
npm -v
ng --version
https://www.javaguides.net/2019/12/spring-boot-angular-mongodb-crud-example-tutorial.html





cd c:\Angular\heliot

ng new heliot

ng g s sensor
ng g c create-sensor
ng g c sensor-details
ng g c sensor-list
ng g c update-sensor

npm install bootstrap jquery --save





ng g c iot-agent
ng g c sensor-group














No comments:

Post a Comment