
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
generator-jhipster-svelte
Advanced tools
A svelte.js blueprint to generate cybernetically enhanced web applications.
Generate cybernetically enhanced JHipster Svelte web applications
This is a JHipster blueprint, that intends to use SvelteKit / Svelte as the client side development framework.
Refer to the changelog to gain more insights into each release details.
Under active development
Following integrations are supported:
✅ Monolithic, Micro-services architecture applications
✅ Spring WebFlux based reactive applications
✅ Session, JWT, OIDC (Keycloak, Okta, Auth0 out of box integration) authentication types
✅ Dark Mode support
✅ SvelteKit, Vite integration
✅ Tailwind CSS
✅ Prettier, EsLint integration
✅ Cypress integration for end to end tests
✅ Jest and Testing Library integration for unit tests
✅ JHipster application JDL
✅ JHipster entity JDL
✅ JHipster elasticsearch integration
✅ Swagger UI
Following functional flows are covered with end-to-end tests:
✅ Sign in
✅ Sign up
✅ Forgot Password
✅ Home
✅ Account
✅ Change Password
✅ Settings
✅ Sign out
✅ Administration
✅ User Management (List, Create, Update, View, Delete)
✅ Loggers
✅ Docs (Swagger UI)
✅ Gateway (micro-services routes)
✅ Entities
✅ Entity (List, Create, Update, View, Delete, Search, Pagination)
For more details, you can check out the source code of sample application
To install the blueprint, run below command:
npm install -g generator-jhipster-svelte
To update the blueprint, run below command:
npm update -g generator-jhipster-svelte
Svelte Hipster blueprint exposes a cli
to use the correct version of JHipster
. Run the below command to generate new applications (interactive
approach):
shipster
Alternatively, you can also use the application JDL
to generate new applications (config
approach). Refer to JDL application documentation for all supported options.
Create a new application JDL like below and save it in a file (app.jdl
in this example):
application {
config {
baseName SampleBlogApp,
applicationType monolith,
authenticationType session,
packageName tech.jhipster.samples.blog,
prodDatabaseType postgresql,
cacheProvider caffeine,
buildTool maven
}
entities *
}
entity Blog {
name String required minlength(3)
handle String required minlength(2)
}
entity Post {
title String required
content TextBlob required
date Instant required
}
entity Tag {
name String required minlength(3)
}
relationship ManyToOne {
Blog{user(login)} to User
Post{blog(name)} to Blog
}
relationship ManyToMany {
Post{tag(name)} to Tag{entry}
}
paginate Tag with pagination
Or, To generate a micro-services
architecture application, use JDL like below and save it in a file (app.jdl
in this example):
application {
config {
baseName gateway
packageName tech.jhipster.samples.gateway
applicationType gateway
authenticationType oauth2
prodDatabaseType postgresql
serviceDiscoveryType eureka
testFrameworks [cypress]
reactive true
}
entities Blog, Post, Tag
}
application {
config {
baseName blog
packageName tech.jhipster.samples.blog
applicationType microservice
authenticationType oauth2
prodDatabaseType mysql
serverPort 8081
serviceDiscoveryType eureka
}
entities Blog, Post, Tag
}
entity Blog {
name String required minlength(3)
handle String required minlength(2)
}
entity Post {
title String required
content TextBlob required
date Instant required
}
entity Tag {
name String required minlength(2)
}
relationship ManyToOne {
Blog{user(login)} to User,
Post{blog(name)} to Blog
}
relationship ManyToMany {
Post{tag(name)} to Tag{post}
}
paginate Post, Tag with pagination
microservice Blog, Post, Tag with blog
deployment {
deploymentType docker-compose
appsFolders [gateway, blog]
}
Refer to JDL entity fields documentation for all supported entity data types and constraints. Refer to JDL relationships documentation for supported relationships and syntax. Refer JHipster micro-services documentation for all supported components.
Pass import-jdl
option along the file path to shipster
cli to generate new application:
shipster import-jdl app.jdl
To generate Swagger UI, pass --swagger-ui
option:
shipster import-jdl app.jdl --swagger-ui
If you have already setup JHipster on your workstation, then, run the below command (it overrides to use the global JHipster
version). Be cautious to use compatible Svelte Hipster
and JHipster
versions.
jhipster --blueprints svelte
JHipster | Svelte Hipster |
---|---|
6.10.5 | 0.1 - 0.2.1 |
7.0.x | 0.3 - 0.4 |
7.1.x | 0.5 |
7.3.x | 0.6 |
7.4.x | 0.7 - 0.7.1 |
7.8.x | >= 0.8 |
Svelte Hipster docker images are available at DockerHub
To develop against the latest published release, follow below steps:
Svelte Hipster
docker image:docker pull jhipster/svelte-hipster
In case, you want to try out the latest code (unpublished), then, pull the image with main
tag as:
docker pull jhipster/svelte-hipster:main
mkdir svelte-app && cd svelte-app
docker run -it --rm -v $PWD:/app jhipster/svelte-hipster
You can also run the generated application from within the container. Following examples consider maven
as the build tool:
docker run -it --rm -v $PWD:/app -v ~/.m2:/home/shipster/.m2 --entrypoint ./mvnw jhipster/svelte-hipster clean test
dev
profile, use the command:docker run -it --rm -v $PWD:/app -v ~/.m2:/home/shipster/.m2 -p 8080:8080 --entrypoint ./mvnw jhipster/svelte-hipster -DskipTests
Access application with http://localhost:8080/
If you would like to access the container file system, you can also attach a bourne shell:
docker run -it --rm -v $PWD:/app -v ~/.m2:/home/shipster/.m2 --entrypoint sh jhipster/svelte-hipster
Pull requests are encouraged and always welcome.
To setup your development environment, follow below steps:
cd generator-jhipster-svelte
npm link
cd generator-jhipster
npm link
cd generator-jhipster-svelte
npm link generator-jhipster
JHipster
and svelte
blueprint.mkdir my-app && cd my-app
npm link generator-jhipster-svelte
npm link generator-jhipster (Optional: Needed only if you are using a non-released JHipster version)
shipster
Apache-2.0 © Vishal Mahajan
[0.9.0] - 2022-05-18
microservice
and gateway
application types. A Gateway
application is bundled with a UI page to view configured micro-services routes. With this change, you can now generate micro-services
architecture applications using Svelte
as a frontend technical stack. #1146, #1147, #1150, #1163Auth0
OIDC provider in Cypress end-to-end tests #1121Spring WebFlux
based reactive backend applications #1146USER_USERNAME
, USER_PASSWORD
, ADMIN_USERNAME
, and ADMIN_PASSWORD
#1140Cypress
, Svelte
, Svelte/Kit
, Eslint
, Husky
etc dependencies.FAQs
A svelte.js blueprint to generate cybernetically enhanced web applications.
The npm package generator-jhipster-svelte receives a total of 15 weekly downloads. As such, generator-jhipster-svelte popularity was classified as not popular.
We found that generator-jhipster-svelte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.