Giter Club home page Giter Club logo

realworld-spring-boot-native's Introduction

RealWorld Example App

Java 17 + Spring Boot 3 + Native image codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

This codebase was created to demonstrate a fully fledged fullstack application built with Java 17 + Spring Boot 3 running as a native application including CRUD operations, authentication, routing, pagination, and more.

This application is based on Java 17 + Spring Boot 3 Real world application with changes made only to make it working as a native application

Note: You just need to have JDK 17 installed.

Note: If permission denied occurs when running the gradle task, enter chmod +x gradlew to grant the permission.

Install GraalVM distribution with sdkman

sdk install java 22.3.2.r17-nik
sdk use java 22.3.2.r17-nik

Build application

./gradlew build

Run application with native-image-agent attached to collect reachability metadata

java -agentlib:native-image-agent=config-output-dir=./aot/META-INF/native-image/,experimental-class-define-support -Dspring.aot.enabled=true -jar ./build/libs/realworld.jar

In second terminal window run api integration tests

./api/run-api-tests.sh

Close previously run application with native-image-agent

Build native image

./gradlew nativeCompile

Run the application

./build/native/nativeCompile/realworld 

realworld-spring-boot-native's People

Contributors

ericsimons avatar geromegrignon avatar alonski avatar esakkiraj avatar optikfluffel avatar yassineder avatar segmentationfaulter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.