/realworld-backend-micronaut

Real world backend API built in Micronaut

Primary LanguageJavaMIT LicenseMIT

RealWorld Example App using Spring

Micronaut Framework codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API

CI Codecov

This codebase was created to demonstrate a fully fledged fullstack application built with Micronaut including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the Micronaut community styleguides & best practices.

For more information on how this works with other frontends/backends, head over to the RealWorld repo.

Live Demo

Check out the live application on Render:

Resource URL
api https://realworld-backend-micronaut.onrender.com/api
swagger-ui https://realworld-backend-micronaut.onrender.com/swagger-ui

💡 The application is deployed on a free tier, so it may take a few seconds to start.

How it works

App

CI

Getting started

Note that Java 17 or above is required to build the project with Gradle.

JVM

Run the application with Gradle:

./gradlew run

Or download the latest artifact from the releases page, and run:

java -jar realworld-backend-micronaut-*.jar

Native Image

Run the application with Gradle:

./gradlew nativeRun

Or download the latest artifact for your platform from the releases page, unpack, and run the executable:

./realworld-backend-micronaut

Docker

Run the application with Docker:

docker run -p 8080:8080 ghcr.io/alexey-lapin/realworld-backend-micronaut:latest

Try it out with a RealWorld frontend

The entry point address of the backend API is at http://localhost:8080/api

Run test

The repository contains a lot of test cases to cover both api test and repository test.

./gradlew test