Browse Source

Add base project

pull/3/head
Pablo Bonilla 5 months ago
parent
commit
d5706cae4f
No known key found for this signature in database GPG Key ID: 46877262B8DE47E2
  1. 18
      .browserslistrc
  2. 21
      .circleci/config.yml
  3. 23
      .editorconfig
  4. 8
      .eslintignore
  5. 98
      .eslintrc.json
  6. 150
      .gitattributes
  7. 159
      .gitignore
  8. 5
      .huskyrc
  9. 40
      .jhipster/Categoria.json
  10. 46
      .jhipster/EPreguntaAbierta.json
  11. 28
      .jhipster/EPreguntaAbiertaRespuesta.json
  12. 52
      .jhipster/EPreguntaCerrada.json
  13. 40
      .jhipster/EPreguntaCerradaOpcion.json
  14. 97
      .jhipster/Encuesta.json
  15. 36
      .jhipster/Factura.json
  16. 40
      .jhipster/PPreguntaAbierta.json
  17. 52
      .jhipster/PPreguntaCerrada.json
  18. 35
      .jhipster/PPreguntaCerradaOpcion.json
  19. 36
      .jhipster/ParametroAplicacion.json
  20. 74
      .jhipster/Plantilla.json
  21. 46
      .jhipster/UsuarioEncuesta.json
  22. 62
      .jhipster/UsuarioExtra.json
  23. 3
      .lintstagedrc.js
  24. 117
      .mvn/wrapper/MavenWrapperDownloader.java
  25. 2
      .mvn/wrapper/maven-wrapper.properties
  26. 1
      .npmrc
  27. 8
      .prettierignore
  28. 18
      .prettierrc
  29. 65
      .yo-rc.json
  30. 1
      Procfile
  31. 217
      README.md
  32. 114
      angular.json
  33. 20
      checkstyle.xml
  34. 196
      datasurvey-ent.jdl
  35. 22
      jest.conf.js
  36. 310
      mvnw
  37. 182
      mvnw.cmd
  38. 21
      ngsw-config.json
  39. 25
      npmw
  40. 24
      npmw.cmd
  41. 47988
      package-lock.json
  42. 142
      package.json
  43. 1174
      pom.xml
  44. 30
      sonar-project.properties
  45. 28
      src/main/docker/app.yml
  46. 3778
      src/main/docker/grafana/provisioning/dashboards/JVM.json
  47. 11
      src/main/docker/grafana/provisioning/dashboards/dashboard.yml
  48. 50
      src/main/docker/grafana/provisioning/datasources/datasource.yml
  49. 52
      src/main/docker/jhipster-control-center.yml
  50. 4
      src/main/docker/jib/entrypoint.sh
  51. 31
      src/main/docker/monitoring.yml
  52. 15
      src/main/docker/mysql.yml
  53. 31
      src/main/docker/prometheus/prometheus.yml
  54. 13
      src/main/docker/sonar.yml
  55. 19
      src/main/java/org/datasurvey/ApplicationWebXml.java
  56. 103
      src/main/java/org/datasurvey/DataSurveyApp.java
  57. 13
      src/main/java/org/datasurvey/GeneratedByJHipster.java
  58. 111
      src/main/java/org/datasurvey/aop/logging/LoggingAspect.java
  59. 12
      src/main/java/org/datasurvey/config/ApplicationProperties.java
  60. 46
      src/main/java/org/datasurvey/config/AsyncConfiguration.java
  61. 106
      src/main/java/org/datasurvey/config/CacheConfiguration.java
  62. 15
      src/main/java/org/datasurvey/config/Constants.java
  63. 16
      src/main/java/org/datasurvey/config/DatabaseConfiguration.java
  64. 20
      src/main/java/org/datasurvey/config/DateTimeFormatConfiguration.java
  65. 51
      src/main/java/org/datasurvey/config/JacksonConfiguration.java
  66. 69
      src/main/java/org/datasurvey/config/LiquibaseConfiguration.java
  67. 26
      src/main/java/org/datasurvey/config/LocaleConfiguration.java
  68. 17
      src/main/java/org/datasurvey/config/LoggingAspectConfiguration.java
  69. 47
      src/main/java/org/datasurvey/config/LoggingConfiguration.java
  70. 111
      src/main/java/org/datasurvey/config/SecurityConfiguration.java
  71. 59
      src/main/java/org/datasurvey/config/StaticResourcesWebConfiguration.java
  72. 109
      src/main/java/org/datasurvey/config/WebConfigurer.java
  73. 90
      src/main/java/org/datasurvey/config/WebsocketConfiguration.java
  74. 40
      src/main/java/org/datasurvey/config/WebsocketSecurityConfiguration.java
  75. 4
      src/main/java/org/datasurvey/config/package-info.java
  76. 76
      src/main/java/org/datasurvey/domain/AbstractAuditingEntity.java
  77. 61
      src/main/java/org/datasurvey/domain/Authority.java
  78. 179
      src/main/java/org/datasurvey/domain/Categoria.java
  79. 177
      src/main/java/org/datasurvey/domain/EPreguntaAbierta.java
  80. 99
      src/main/java/org/datasurvey/domain/EPreguntaAbiertaRespuesta.java
  81. 197
      src/main/java/org/datasurvey/domain/EPreguntaCerrada.java
  82. 136
      src/main/java/org/datasurvey/domain/EPreguntaCerradaOpcion.java
  83. 389
      src/main/java/org/datasurvey/domain/Encuesta.java
  84. 136
      src/main/java/org/datasurvey/domain/Factura.java
  85. 136
      src/main/java/org/datasurvey/domain/PPreguntaAbierta.java
  86. 194
      src/main/java/org/datasurvey/domain/PPreguntaCerrada.java
  87. 118
      src/main/java/org/datasurvey/domain/PPreguntaCerradaOpcion.java
  88. 135
      src/main/java/org/datasurvey/domain/ParametroAplicacion.java
  89. 300
      src/main/java/org/datasurvey/domain/Plantilla.java
  90. 231
      src/main/java/org/datasurvey/domain/User.java
  91. 160
      src/main/java/org/datasurvey/domain/UsuarioEncuesta.java
  92. 266
      src/main/java/org/datasurvey/domain/UsuarioExtra.java
  93. 9
      src/main/java/org/datasurvey/domain/enumeration/AccesoEncuesta.java
  94. 9
      src/main/java/org/datasurvey/domain/enumeration/EstadoCategoria.java
  95. 9
      src/main/java/org/datasurvey/domain/enumeration/EstadoColaborador.java
  96. 11
      src/main/java/org/datasurvey/domain/enumeration/EstadoEncuesta.java
  97. 11
      src/main/java/org/datasurvey/domain/enumeration/EstadoPlantilla.java
  98. 9
      src/main/java/org/datasurvey/domain/enumeration/EstadoUsuario.java
  99. 9
      src/main/java/org/datasurvey/domain/enumeration/PreguntaCerradaTipo.java
  100. 9
      src/main/java/org/datasurvey/domain/enumeration/RolColaborador.java

18
.browserslistrc

@ -0,0 +1,18 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support
# You can see what browsers were selected by your queries by running:
# npx browserslist
last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

21
.circleci/config.yml

@ -0,0 +1,21 @@
version: 2.1
jobs:
build-and-test:
environment:
_JAVA_OPTIONS: '-Dspring.profiles.active=prod'
docker:
- image: cimg/openjdk:11.0
steps:
- checkout
- run:
name: Build
command: mvn -B -DskipTests clean package -P prod
- run:
name: Test
command: mvn test -P prod
workflows:
datasurvey:
jobs:
- build-and-test

23
.editorconfig

@ -0,0 +1,23 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Change these settings to your own preference
indent_style = space
indent_size = 4
[*.{ts,tsx,js,jsx,json,css,scss,yml,html,vue}]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

8
.eslintignore

@ -0,0 +1,8 @@
node_modules/
src/main/docker/
jest.conf.js
webpack/
target/
build/
node/
postcss.config.js

98
.eslintrc.json

@ -0,0 +1,98 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@angular-eslint/eslint-plugin", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/recommended",
"prettier",
"eslint-config-prettier"
],
"env": {
"browser": true,
"es6": true,
"commonjs": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "jhi",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "jhi",
"style": "camelCase"
}
],
"@angular-eslint/relative-url-prefix": "error",
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
],
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"constructor",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-parameter-properties": ["warn", { "allows": ["public", "private", "protected"] }],
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/prefer-nullish-coalescing": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/unbound-method": "off",
"arrow-body-style": "error",
"curly": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"guard-for-in": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-eval": "error",
"no-labels": "error",
"no-new": "error",
"no-new-wrappers": "error",
"object-shorthand": ["error", "always", { "avoidExplicitReturnArrows": true }],
"radix": "error",
"spaced-comment": ["warn", "always"]
}
}

150
.gitattributes

@ -0,0 +1,150 @@
# This file is inspired by https://github.com/alexkaratarakis/gitattributes
#
# Auto detect text files and perform LF normalization
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
# The above will handle all files NOT found below
# These files are text and should be normalized (Convert crlf => lf)
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.coffee text
*.css text
*.cql text
*.df text
*.ejs text
*.html text
*.java text
*.js text
*.json text
*.less text
*.properties text
*.sass text
*.scss text
*.sh text eol=lf
*.sql text
*.txt text
*.ts text
*.xml text
*.yaml text
*.yml text
# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.markdown text
*.md text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default. If you want to treat it as text,
# comment-out the following line and uncomment the line after.
*.svg binary
#*.svg text
*.eps binary
# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.jar binary
*.war binary
## LINTERS
.csslintrc text
.eslintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text
## CONFIGS
*.conf text
*.config text
.editorconfig text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
*.npmignore text
## HEROKU
Procfile text
.slugignore text
## AUDIO
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
## VIDEO
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.swc binary
*.swf binary
*.webm binary
## ARCHIVES
*.7z binary
*.gz binary
*.rar binary
*.tar binary
*.zip binary
## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

159
.gitignore

@ -0,0 +1,159 @@
######################
# Project Specific
######################
/src/main/webapp/content/css/main.css
/target/classes/static/**
/src/test/javascript/coverage/
######################
# Node
######################
/node/
node_tmp/
node_modules/
npm-debug.log.*
/.awcache/*
/.cache-loader/*
######################
# SASS
######################
.sass-cache/
######################
# Eclipse
######################
*.pydevproject
.project
.metadata
tmp/
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
.factorypath
/src/main/resources/rebel.xml
# External tool builders
.externalToolBuilders/**
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
# STS-specific
/.sts4-cache/*
######################
# IntelliJ
######################
.idea/
*.iml
*.iws
*.ipr
*.ids
*.orig
classes/
out/
######################
# Visual Studio Code
######################
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
######################
# Maven
######################
/log/
/target/
######################
# Gradle
######################
.gradle/
/build/
######################
# Package Files
######################
*.jar
*.war
*.ear
*.db
######################
# Windows
######################
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
######################
# Mac OSX
######################
.DS_Store
.svn
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
######################
# Directories
######################
/bin/
/deploy/
######################
# Logs
######################
*.log*
######################
# Others
######################
*.class
*.*~
*~
.merge_file*
######################
# Gradle Wrapper
######################
!gradle/wrapper/gradle-wrapper.jar
######################
# Maven Wrapper
######################
!.mvn/wrapper/maven-wrapper.jar
######################
# ESLint
######################
.eslintcache
######################
# Code coverage
######################
/coverage/
/.nyc_output/

5
.huskyrc

@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged"
}
}

40
.jhipster/Categoria.json

@ -0,0 +1,40 @@
{
"name": "Categoria",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required"]
},
{
"fieldName": "estado",
"fieldType": "EstadoCategoria",
"fieldValues": "ACTIVE,INACTIVE",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "one-to-many",
"otherEntityName": "encuesta",
"otherEntityRelationshipName": "categoria",
"relationshipName": "encuesta"
},
{
"relationshipType": "one-to-many",
"otherEntityName": "plantilla",
"otherEntityRelationshipName": "categoria",
"relationshipName": "plantilla"
}
],
"entityTableName": "categoria",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210927"
}

46
.jhipster/EPreguntaAbierta.json

@ -0,0 +1,46 @@
{
"name": "EPreguntaAbierta",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required", "maxlength", "minlength"],
"fieldValidateRulesMaxlength": "500",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "opcional",
"fieldType": "Boolean",
"fieldValidateRules": ["required"]
},
{
"fieldName": "orden",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "one-to-many",
"otherEntityName": "ePreguntaAbiertaRespuesta",
"otherEntityRelationshipName": "ePreguntaAbierta",
"relationshipName": "ePreguntaAbiertaRespuesta"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "encuesta",
"otherEntityRelationshipName": "ePreguntaAbierta",
"relationshipName": "encuesta"
}
],
"entityTableName": "e_pregunta_abierta",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210922"
}

28
.jhipster/EPreguntaAbiertaRespuesta.json

@ -0,0 +1,28 @@
{
"name": "EPreguntaAbiertaRespuesta",
"fields": [
{
"fieldName": "respuesta",
"fieldType": "String",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "ePreguntaAbierta",
"otherEntityRelationshipName": "ePreguntaAbiertaRespuesta",
"relationshipName": "ePreguntaAbierta"
}
],
"entityTableName": "e_pregunta_abierta_respuesta",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210923"
}

52
.jhipster/EPreguntaCerrada.json

@ -0,0 +1,52 @@
{
"name": "EPreguntaCerrada",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required", "maxlength", "minlength"],
"fieldValidateRulesMaxlength": "500",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "tipo",
"fieldType": "PreguntaCerradaTipo",
"fieldValues": "SINGLE,MULTIPLE",
"fieldValidateRules": ["required"]
},
{
"fieldName": "opcional",
"fieldType": "Boolean",
"fieldValidateRules": ["required"]
},
{
"fieldName": "orden",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "one-to-many",
"otherEntityName": "ePreguntaCerradaOpcion",
"otherEntityRelationshipName": "ePreguntaCerrada",
"relationshipName": "ePreguntaCerradaOpcion"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "encuesta",
"otherEntityRelationshipName": "ePreguntaCerrada",
"relationshipName": "encuesta"
}
],
"entityTableName": "e_pregunta_cerrada",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210924"
}

40
.jhipster/EPreguntaCerradaOpcion.json

@ -0,0 +1,40 @@
{
"name": "EPreguntaCerradaOpcion",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required", "maxlength", "minlength"],
"fieldValidateRulesMaxlength": "500",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "orden",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
},
{
"fieldName": "cantidad",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "ePreguntaCerrada",
"otherEntityRelationshipName": "ePreguntaCerradaOpcion",
"relationshipName": "ePreguntaCerrada"
}
],
"entityTableName": "e_pregunta_cerrada_opcion",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210925"
}

97
.jhipster/Encuesta.json

@ -0,0 +1,97 @@
{
"name": "Encuesta",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required", "maxlength", "minlength"],
"fieldValidateRulesMaxlength": "50",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "descripcion",
"fieldType": "String"
},
{
"fieldName": "fechaCreacion",
"fieldType": "ZonedDateTime",
"fieldValidateRules": ["required"]
},
{
"fieldName": "fechaPublicacion",
"fieldType": "ZonedDateTime"
},
{
"fieldName": "fechaFinalizar",
"fieldType": "ZonedDateTime"
},
{
"fieldName": "fechaFinalizada",
"fieldType": "ZonedDateTime"
},
{
"fieldName": "calificacion",
"fieldType": "Double",
"fieldValidateRules": ["required"]
},
{
"fieldName": "acceso",
"fieldType": "AccesoEncuesta",
"fieldValues": "PUBLIC,PRIVATE",
"fieldValidateRules": ["required"]
},
{
"fieldName": "contrasenna",
"fieldType": "String"
},
{
"fieldName": "estado",
"fieldType": "EstadoEncuesta",
"fieldValues": "DRAFT,ACTIVE,FINISHED,DELETED",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "one-to-many",
"otherEntityName": "usuarioEncuesta",
"otherEntityRelationshipName": "encuesta",
"relationshipName": "usuarioEncuesta"
},
{
"relationshipType": "one-to-many",
"otherEntityName": "ePreguntaAbierta",
"otherEntityRelationshipName": "encuesta",
"relationshipName": "ePreguntaAbierta"
},
{
"relationshipType": "one-to-many",
"otherEntityName": "ePreguntaCerrada",
"otherEntityRelationshipName": "encuesta",
"relationshipName": "ePreguntaCerrada"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "categoria",
"otherEntityRelationshipName": "encuesta",
"relationshipName": "categoria",
"otherEntityField": "nombre"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "usuarioExtra",
"otherEntityRelationshipName": "encuesta",
"relationshipName": "usuarioExtra"
}
],
"entityTableName": "encuesta",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210921"
}

36
.jhipster/Factura.json

@ -0,0 +1,36 @@
{
"name": "Factura",
"fields": [
{
"fieldName": "nombreUsuario",
"fieldType": "String",
"fieldValidateRules": ["required"]
},
{
"fieldName": "nombrePlantilla",
"fieldType": "String",
"fieldValidateRules": ["required"]
},
{
"fieldName": "costo",
"fieldType": "Double",
"fieldValidateRules": ["required"]
},
{
"fieldName": "fecha",
"fieldType": "ZonedDateTime",
"fieldValidateRules": ["required"]
}
],
"relationships": [],
"entityTableName": "factura",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210928"
}

40
.jhipster/PPreguntaAbierta.json

@ -0,0 +1,40 @@
{
"name": "PPreguntaAbierta",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required", "maxlength", "minlength"],
"fieldValidateRulesMaxlength": "500",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "opcional",
"fieldType": "Boolean",
"fieldValidateRules": ["required"]
},
{
"fieldName": "orden",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "plantilla",
"otherEntityRelationshipName": "pPreguntaAbierta",
"relationshipName": "plantilla"
}
],
"entityTableName": "p_pregunta_abierta",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210930"
}

52
.jhipster/PPreguntaCerrada.json

@ -0,0 +1,52 @@
{
"name": "PPreguntaCerrada",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required", "maxlength", "minlength"],
"fieldValidateRulesMaxlength": "500",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "tipo",
"fieldType": "PreguntaCerradaTipo",
"fieldValues": "SINGLE,MULTIPLE",
"fieldValidateRules": ["required"]
},
{
"fieldName": "opcional",
"fieldType": "Boolean",
"fieldValidateRules": ["required"]
},
{
"fieldName": "orden",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "one-to-many",
"otherEntityName": "pPreguntaCerradaOpcion",
"otherEntityRelationshipName": "pPreguntaCerrada",
"relationshipName": "pPreguntaCerradaOpcion"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "plantilla",
"otherEntityRelationshipName": "pPreguntaCerrada",
"relationshipName": "plantilla"
}
],
"entityTableName": "p_pregunta_cerrada",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210931"
}

35
.jhipster/PPreguntaCerradaOpcion.json

@ -0,0 +1,35 @@
{
"name": "PPreguntaCerradaOpcion",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required", "maxlength", "minlength"],
"fieldValidateRulesMaxlength": "500",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "orden",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "pPreguntaCerrada",
"otherEntityRelationshipName": "pPreguntaCerradaOpcion",
"relationshipName": "pPreguntaCerrada"
}
],
"entityTableName": "p_pregunta_cerrada_opcion",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210932"
}

36
.jhipster/ParametroAplicacion.json

@ -0,0 +1,36 @@
{
"name": "ParametroAplicacion",
"fields": [
{
"fieldName": "maxDiasEncuesta",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
},
{
"fieldName": "minDiasEncuesta",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
},
{
"fieldName": "maxCantidadPreguntas",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
},
{
"fieldName": "minCantidadPreguntas",
"fieldType": "Integer",
"fieldValidateRules": ["required"]
}
],
"relationships": [],
"entityTableName": "parametro_aplicacion",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210919"
}

74
.jhipster/Plantilla.json

@ -0,0 +1,74 @@
{
"name": "Plantilla",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["maxlength", "minlength"],
"fieldValidateRulesMaxlength": "50",
"fieldValidateRulesMinlength": "1"
},
{
"fieldName": "descripcion",
"fieldType": "String"
},
{
"fieldName": "fechaCreacion",
"fieldType": "ZonedDateTime",
"fieldValidateRules": ["required"]
},
{
"fieldName": "fechaPublicacionTienda",
"fieldType": "ZonedDateTime"
},
{
"fieldName": "estado",
"fieldType": "EstadoPlantilla",
"fieldValues": "DRAFT,ACTIVE,DELETED,DISABLED",
"fieldValidateRules": ["required"]
},
{
"fieldName": "precio",
"fieldType": "Double",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "one-to-many",
"otherEntityName": "pPreguntaCerrada",
"otherEntityRelationshipName": "plantilla",
"relationshipName": "pPreguntaCerrada"
},
{
"relationshipType": "one-to-many",
"otherEntityName": "pPreguntaAbierta",
"otherEntityRelationshipName": "plantilla",
"relationshipName": "pPreguntaAbierta"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "categoria",
"otherEntityRelationshipName": "plantilla",
"relationshipName": "categoria",
"otherEntityField": "nombre"
},
{
"relationshipType": "many-to-many",
"otherEntityName": "usuarioExtra",
"otherEntityRelationshipName": "plantilla",
"relationshipName": "usuarioExtra",
"ownerSide": false
}
],
"entityTableName": "plantilla",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210929"
}

46
.jhipster/UsuarioEncuesta.json

@ -0,0 +1,46 @@
{
"name": "UsuarioEncuesta",
"fields": [
{
"fieldName": "rol",
"fieldType": "RolColaborador",
"fieldValues": "READ,WRITE",
"fieldValidateRules": ["required"]
},
{
"fieldName": "estado",
"fieldType": "EstadoColaborador",
"fieldValues": "PENDING,ACTIVE",
"fieldValidateRules": ["required"]
},
{
"fieldName": "fechaAgregado",
"fieldType": "ZonedDateTime",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "usuarioExtra",
"otherEntityRelationshipName": "usuarioEncuesta",
"relationshipName": "usuarioExtra"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "encuesta",
"otherEntityRelationshipName": "usuarioEncuesta",
"relationshipName": "encuesta"
}
],
"entityTableName": "usuario_encuesta",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210926"
}

62
.jhipster/UsuarioExtra.json

@ -0,0 +1,62 @@
{
"name": "UsuarioExtra",
"fields": [
{
"fieldName": "nombre",
"fieldType": "String",
"fieldValidateRules": ["required"]
},
{
"fieldName": "iconoPerfil",
"fieldType": "String"
},
{
"fieldName": "fechaNacimiento",
"fieldType": "ZonedDateTime"
},
{
"fieldName": "estado",
"fieldType": "EstadoUsuario",
"fieldValues": "ACTIVE,SUSPENDED",
"fieldValidateRules": ["required"]
}
],
"relationships": [
{
"relationshipType": "one-to-one",
"otherEntityName": "user",
"otherEntityRelationshipName": "usuarioExtra",
"relationshipName": "user",
"ownerSide": true
},
{
"relationshipType": "one-to-many",
"otherEntityName": "encuesta",
"otherEntityRelationshipName": "usuarioExtra",
"relationshipName": "encuesta"
},
{
"relationshipType": "one-to-many",
"otherEntityName": "usuarioEncuesta",
"otherEntityRelationshipName": "usuarioExtra",
"relationshipName": "usuarioEncuesta"
},
{
"relationshipType": "many-to-many",
"otherEntityName": "plantilla",
"otherEntityRelationshipName": "usuarioExtra",
"relationshipName": "plantilla",
"ownerSide": true
}
],
"entityTableName": "usuario_extra",
"dto": "no",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": true,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": "*",
"changelogDate": "20210703210920"
}

3
.lintstagedrc.js

@ -0,0 +1,3 @@
module.exports = {
'{,src/**/,webpack/}*.{md,json,yml,html,js,ts,tsx,css,scss,java}': ['prettier --write'],
};

117
.mvn/wrapper/MavenWrapperDownloader.java

@ -0,0 +1,117 @@
/*
* Copyright 2007-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = "0.5.6";
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if(mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
String username = System.getenv("MVNW_USERNAME");
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
}
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}

2
.mvn/wrapper/maven-wrapper.properties

@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

1
.npmrc

@ -0,0 +1 @@
legacy-peer-deps = true

8
.prettierignore

@ -0,0 +1,8 @@
node_modules
target
build
package-lock.json
.git
.mvn
gradle
.gradle

18
.prettierrc

@ -0,0 +1,18 @@
# Prettier configuration
printWidth: 140
singleQuote: true
tabWidth: 2
useTabs: false
# js and ts rules:
arrowParens: avoid
# jsx and tsx rules:
jsxBracketSameLine: false
# java rules:
overrides:
- files: "*.java"
options:
tabWidth: 4

65
.yo-rc.json

@ -0,0 +1,65 @@
{
"generator-jhipster": {
"applicationType": "monolith",
"gitCompany": "",
"baseName": "DataSurvey",
"packageName": "org.datasurvey",
"packageFolder": "org/datasurvey",
"serverPort": 8080,
"serviceDiscoveryType": false,
"authenticationType": "jwt",
"cacheProvider": "ehcache",
"enableHibernateCache": true,
"websocket": "spring-websocket",
"databaseType": "sql",
"devDatabaseType": "mysql",
"prodDatabaseType": "mysql",
"searchEngine": false,
"enableSwaggerCodegen": false,
"messageBroker": false,
"buildTool": "maven",
"useSass": true,
"clientPackageManager": "npm",
"testFrameworks": [],
"enableTranslation": true,
"nativeLanguage": "es",
"languages": ["es"],
"clientFramework": "angularX",
"jhiPrefix": "jhi",
"withAdminUi": true,
"jhipsterVersion": "7.1.0",
"skipClient": false,
"skipServer": false,
"skipUserManagement": false,
"skipCheckLengthOfIdentifier": false,
"skipFakeData": false,
"entitySuffix": "",
"dtoSuffix": "DTO",
"blueprints": [],
"otherModules": [],
"pages": [],
"creationTimestamp": 1624822968886,
"jwtSecretKey": "ZjRmZGRhNzFhNDI5OTRmYjkzZmQ0NzI5Yzc3YTYyODBkMjFjZGY1OWMwNzY5YTJkOTA1ZDY3YzE1MWEwMGRkYzg4ZTNlOGUwNTAzMzdiMWVjNDA4NjFiY2JhNTNhYzhkZjQ3N2MyMmY5YzA5ZTFiNzIzMjJjMTg4MmFlNTUyOTY=",
"devServerPort": 4200,
"clientTheme": "none",
"clientThemeVariant": "",
"reactive": false,
"entities": [
"ParametroAplicacion",
"UsuarioExtra",
"Encuesta",
"EPreguntaAbierta",
"EPreguntaAbiertaRespuesta",
"EPreguntaCerrada",
"EPreguntaCerradaOpcion",
"UsuarioEncuesta",
"Categoria",
"Factura",
"Plantilla",
"PPreguntaAbierta",
"PPreguntaCerrada",
"PPreguntaCerradaOpcion"
],
"lastLiquibaseTimestamp": 1625346572000
}
}

1
Procfile

@ -0,0 +1 @@
web: java $JAVA_OPTS -Xmx256m -jar target/*.jar --spring.profiles.active=prod --server.port=$PORT

217
README.md

@ -0,0 +1,217 @@
# DataSurvey
This application was generated using JHipster 7.1.0, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/v7.1.0](https://www.jhipster.tech/documentation-archive/v7.1.0).
## Development
Before you can build this project, you must install and configure the following dependencies on your machine:
1. [Node.js][]: We use Node to run a development web server and build the project.
Depending on your system, you can install Node either from source or as a pre-packaged bundle.
After installing Node, you should be able to run the following command to install development tools.
You will only need to run this command when dependencies change in [package.json](package.json).
```
npm install
```
We use npm scripts and [Angular CLI][] with [Webpack][] as our build system.
Run the following commands in two separate terminals to create a blissful development experience where your browser
auto-refreshes when files change on your hard drive.
```
./mvnw
npm start
```
Npm is also used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by
specifying a newer version in [package.json](package.json). You can also run `npm update` and `npm install` to manage dependencies.
Add the `help` flag on any command to see how you can use it. For example, `npm help update`.
The `npm run` command will list all of the scripts available to run for this project.
### PWA Support
JHipster ships with PWA (Progressive Web App) support, and it's turned off by default. One of the main components of a PWA is a service worker.
The service worker initialization code is disabled by default. To enable it, uncomment the following code in `src/main/webapp/app/app.module.ts`:
```typescript
ServiceWorkerModule.register('ngsw-worker.js', { enabled: false }),
```
### Managing dependencies
For example, to add [Leaflet][] library as a runtime dependency of your application, you would run following command:
```
npm install --save --save-exact leaflet
```
To benefit from TypeScript type definitions from [DefinitelyTyped][] repository in development, you would run following command:
```
npm install --save-dev --save-exact @types/leaflet
```
Then you would import the JS and CSS files specified in library's installation instructions so that [Webpack][] knows about them:
Edit [src/main/webapp/app/app.module.ts](src/main/webapp/app/app.module.ts) file:
```
import 'leaflet/dist/leaflet.js';
```
Edit [src/main/webapp/content/scss/vendor.scss](src/main/webapp/content/scss/vendor.scss) file:
```
@import '~leaflet/dist/leaflet.css';
```
Note: There are still a few other things remaining to do for Leaflet that we won't detail here.
For further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].
### Using Angular CLI
You can also use [Angular CLI][] to generate some custom client code.
For example, the following command:
```
ng generate component my-component
```
will generate few files:
```
create src/main/webapp/app/my-component/my-component.component.html
create src/main/webapp/app/my-component/my-component.component.ts
update src/main/webapp/app/app.module.ts
```
## Building for production
### Packaging as jar
To build the final jar and optimize the DataSurvey application for production, run:
```
./mvnw -Pprod clean verify
```
This will concatenate and minify the client CSS and JavaScript files. It will also modify `index.html` so it references these new files.
To ensure everything worked, run:
```
java -jar target/*.jar
```
Then navigate to [http://localhost:8080](http://localhost:8080) in your browser.
Refer to [Using JHipster in production][] for more details.
### Packaging as war
To package your application as a war in order to deploy it to an application server, run:
```
./mvnw -Pprod,war clean verify
```
## Testing
To launch your application's tests, run:
```
./mvnw verify
```
### Client tests
Unit tests are run by [Jest][]. They're located in [src/test/javascript/](src/test/javascript/) and can be run with:
```
npm test
```
For more information, refer to the [Running tests page][].
### Code quality
Sonar is used to analyse code quality. You can start a local Sonar server (accessible on http://localhost:9001) with:
```
docker-compose -f src/main/docker/sonar.yml up -d
```
Note: we have turned off authentication in [src/main/docker/sonar.yml](src/main/docker/sonar.yml) for out of the box experience while trying out SonarQube, for real use cases turn it back on.
You can run a Sonar analysis with using the [sonar-scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner) or by using the maven plugin.
Then, run a Sonar analysis:
```
./mvnw -Pprod clean verify sonar:sonar
```
If you need to re-run the Sonar phase, please be sure to specify at least the `initialize` phase since Sonar properties are loaded from the sonar-project.properties file.
```
./mvnw initialize sonar:sonar
```
For more information, refer to the [Code quality page][].
## Using Docker to simplify development (optional)
You can use Docker to improve your JHipster development experience. A number of docker-compose configuration are available in the [src/main/docker](src/main/docker) folder to launch required third party services.
For example, to start a mysql database in a docker container, run:
```
docker-compose -f src/main/docker/mysql.yml up -d
```
To stop it and remove the container, run:
```
docker-compose -f src/main/docker/mysql.yml down
```
You can also fully dockerize your application and all the services that it depends on.
To achieve this, first build a docker image of your app by running:
```
./mvnw -Pprod verify jib:dockerBuild
```
Then run:
```
docker-compose -f src/main/docker/app.yml up -d
```
For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (`jhipster docker-compose`), which is able to generate docker configurations for one or several JHipster applications.
## Continuous Integration (optional)
To configure CI for your project, run the ci-cd sub-generator (`jhipster ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration][] page for more information.
[jhipster homepage and latest documentation]: https://www.jhipster.tech
[jhipster 7.1.0 archive]: https://www.jhipster.tech/documentation-archive/v7.1.0
[using jhipster in development]: https://www.jhipster.tech/documentation-archive/v7.1.0/development/
[using docker and docker-compose]: https://www.jhipster.tech/documentation-archive/v7.1.0/docker-compose
[using jhipster in production]: https://www.jhipster.tech/documentation-archive/v7.1.0/production/
[running tests page]: https://www.jhipster.tech/documentation-archive/v7.1.0/running-tests/
[code quality page]: https://www.jhipster.tech/documentation-archive/v7.1.0/code-quality/
[setting up continuous integration]: https://www.jhipster.tech/documentation-archive/v7.1.0/setting-up-ci/
[node.js]: https://nodejs.org/
[webpack]: https://webpack.github.io/
[angular cli]: https://cli.angular.io/
[browsersync]: https://www.browsersync.io/
[jest]: https://facebook.github.io/jest/
[jasmine]: https://jasmine.github.io/2.0/introduction.html
[leaflet]: https://leafletjs.com/
[definitelytyped]: https://definitelytyped.org/

114
angular.json

@ -0,0 +1,114 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"data-survey": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
},
"@schematics/angular:application": {
"strict": true
}
},
"root": "",
"sourceRoot": "src/main/webapp",
"prefix": "jhi",
"architect": {
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {