Skip to content

Latest commit

 

History

History
190 lines (149 loc) · 6.19 KB

NOTES.md

File metadata and controls

190 lines (149 loc) · 6.19 KB

datasciencestack

Fullstack open source stack for data science, supervised leearning and unsupervised learning

Prerequisites

This project uses

https://github.com/arunabhdas/jhipster-lite/tree/main

Java 17 is needed to follow along


==> sdk install java

==> java --version
openjdk 17.0.5 2022-10-18
OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8)
OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode)

Steps

  • Initial commit generated by generator-jhipster@7.9.3
==> jhipster
INFO! Using bundled JHipster
(node:34110) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./lib/util/" in the "exports" field module resolution of the package at /opt/homebrew/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/package.json.
Update this package.json to use a subpath pattern like "./lib/util/*".
(Use `node --trace-deprecation ...` to show where the warning was created)

        ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
        ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
        ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝
  ██╗   ██║ ██╔═══██║    ██║    ██╔════╝   ╚═══██╗    ██║    ██╔═══╝   ██╔══██║
  ╚██████╔╝ ██║   ██║ ████████╗ ██║       ██████╔╝    ██║    ████████╗ ██║  ╚██╗
   ╚═════╝  ╚═╝   ╚═╝ ╚═══════╝ ╚═╝       ╚═════╝     ╚═╝    ╚═══════╝ ╚═╝   ╚═╝
                            https://www.jhipster.tech
Welcome to JHipster v7.9.3

Application files will be generated in folder: /Users/coder/repos/arunabhdas/githubrepos/DataScienceStack
 _______________________________________________________________________________________________________________

  Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/
  If you find JHipster useful, consider sponsoring the project at https://opencollective.com/generator-jhipster
 _______________________________________________________________________________________________________________

? Which *type* of application would you like to create? Monolithic application (recommended for simple projects)
? What is the base name of your application? DataScienceStack
? Do you want to make it reactive with Spring WebFlux? No
? What is your default Java package name? com.arunabhdas.datasciencestack
? Which *type* of authentication would you like to use? JWT authentication (stateless, with a token)
? Which *type* of database would you like to use? SQL (H2, PostgreSQL, MySQL, MariaDB, Oracle, MSSQL)
? Which *production* database would you like to use? PostgreSQL
? Which *development* database would you like to use? H2 with disk-based persistence
? Which cache do you want to use? (Spring cache abstraction) No cache - Warning, when using an SQL database, this will disable the Hibernate 2nd level cache!
? Would you like to use Maven or Gradle for building the backend? Gradle
? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
? Which other technologies would you like to use? API first development using OpenAPI-generator
? Which *Framework* would you like to use for the client? React
? Do you want to generate the admin UI? Yes
? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Cosmo
? Choose a Bootswatch variant navbar theme (https://bootswatch.com/)? Light
? Would you like to enable internationalization support? No
? Please choose the native language of the application English
? Besides JUnit and Jest, which testing frameworks would you like to use? 
? Would you like to install other generators from the JHipster Marketplace? No
Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 99,999 days
        for: CN=Java Hipster, OU=Development, O=com.arunabhdas.datasciencestack, L=, ST=, C=

KeyStore '/Users/coder/repos/arunabhdas/githubrepos/DataScienceStack/src/main/resources/config/tls//keystore.p12' generated successfully.

JDL

Initial JDL


entity Region {
	regionName String
}

entity Country {
	countryName String
}

// an ignored comment
/** not an ignored comment */
entity Location {
	streetAddress String,
	postalCode String,
	city String,
	stateProvince String
}

entity Department {
	departmentName String required
}

/**
 * Task entity.
 */
entity Task {
	title String,
	description String
}

/**
 * The Scientist entity.
 */
entity Scientist {
	/**
	* The firstname attribute.
	*/
	firstName String,
	lastName String,
	email String,
	phoneNumber String,
	startDate Instant,
	salary Long,
	percentage Long
}

entity Area {
	title String,
	description String
}


enum Language {
    FRENCH, ENGLISH, SPANISH
}

relationship OneToOne {
	Country{region} to Region
}

relationship OneToOne {
	Location{country} to Country
}

relationship OneToOne {
	Department{location} to Location
}

relationship ManyToMany {
	Area{task(title)} to Task{area}
}

// defining multiple OneToMany relationships with comments
relationship OneToMany {
	Scientist to Area{scientist},
	/**
	* A relationship
	*/
	Department to
	/**
	* Another side of the same relationship
	*/
	Scientist{department}
}


// Set pagination options
paginate Scientist with infinite-scroll
paginate Area with pagination

// Use Data Transfer Objects (DTO)
// dto * with mapstruct

// Set service options to all except few
service all with serviceImpl except Scientist, Area

// Set an angular suffix
// angularSuffix * with mySuffix

Debug develop

  • Debug develop using
==> ./gradlew

Troubleshooting

Change npm.version to 3.10.8 in pom.xml thingsboard/thingsboard#1335