Skip to content

Instantly share code, notes, and snippets.

View mraible's full-sized avatar

Matt Raible mraible

View GitHub Profile
@mraible
mraible / 10m-2.16.0.html
Last active February 5, 2024 10:16
Add Authentication to Any Web Page in 10 Minutes
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<title>Simple Web Page</title>
<style>
h1 {
margin: 2em 0;
@mraible
mraible / demo.md
Last active December 21, 2023 07:07
Spring Boot + Ionic Demo

Spring Boot API

Create your Spring Boot API project using start.spring.io or the command line.

http https://start.spring.io/starter.zip \
dependencies==data-jpa,data-rest,h2,web,devtools -d
  1. Open project in IntelliJ IDEA. Create a Beer entity class in src/main/java/com/example/beer. → boot-entity
@mraible
mraible / clone.sh
Created January 18, 2023 17:21
Use JHipster's main branch
git clone https://github.com/jhipster/generator-jhipster.git --depth=1
cd generator-jhipster
npm i
npm link
@mraible
mraible / angular-size.md
Last active June 7, 2023 08:06
Angular App Size

Angular 8:

  • ES5: 62 + 683 + 6.2 + 176 + 8500
  • ES2015: 50 + 264 + 6.2 + 174 + 7100

With AOT:

  • ES5: 781 + 123 + 1.5 = 905.5
  • ES2015: 664 + 36 + 1.5 = 701.5
@mraible
mraible / javaone-2022-jhipster.adoc
Last active October 17, 2022 09:53
JHipster at JavaOne 2022 Hackergarten
@mraible
mraible / README.md
Last active July 15, 2022 09:02
Steps to use Okta's SignIn Widget in an Angular app

Install Angular CLI:

npm install -g @angular/cli

Create a new project using Angular CLI:

ng new okta-demo

Install the Okta SignIn Widget:

@mraible
mraible / mfr.sh
Last active April 3, 2022 01:49
Try JHipster's microfrontend support for React
npm install -g generator-jhipster@7.8
take ~/Downloads/mfr
jhipster jdl reactive-mf --fork # use --client-framework=angularX|vue for other frameworks
@mraible
mraible / pom.xml.patch
Last active March 23, 2022 05:54
JHipster modified for Java on M1
diff --git a/pom.xml b/pom.xml
index 7b8cffc..3640692 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,6 @@
<maven-compiler-plugin.version>3.9.0</maven-compiler-plugin.version>
<maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version>
<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
- <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
@mraible
mraible / App.test.js
Created November 24, 2020 15:21
App.test.js from CRA with Okta React 4.0.0
import React from 'react';
import ReactDOM from 'react-dom';
import { act } from 'react-dom/test-utils';
import App from './App';
jest.mock('@okta/okta-auth-js', () => {
return {
OktaAuth: jest.fn(() => {
return {
userAgent: 'okta/okta-auth-js',
@mraible
mraible / apps.jh
Last active December 16, 2021 22:30
Microservices with JHipster and Import JDL
application {
config {
baseName gateway,
packageName com.okta.developer.gateway,
applicationType gateway,
authenticationType oauth2,
prodDatabaseType postgresql,
searchEngine elasticsearch,
serviceDiscoveryType eureka,
testFrameworks [protractor]